Marketplaces Documentation
This section of the documentation explains how data is transferred from us to various marketplaces. There are two distinct methods for listing data: FTP and API. For marketplaces that utilize the FTP file upload method, their code has been consolidated to avoid code duplication. On the other hand, for marketplaces that employ the API method, their code remains separate because it is primarily used to interact with the marketplace’s API.
Marketplaces that use the FTP method are:
- Fruugo
- Kaufland
- Secret Sales
API method:
- Onbuy
- Spartoo
Given that the code is consolidated into a single repository for all marketplaces, we'll address the installation and prerequisites in this section. Any new marketplace should be added to this repository. However, each client should maintain their own repository.
- Clone the repository and install the dependencies
- Create a .env file and add the get the keys from the various marketplaces needed, ftp credentials, and remote database credentials.
- Running the script
The script accommodates various marketplaces, and the execution process varies accordingly. For marketplaces where files are uploaded to an FTP location, a single script manages them due to a similar process. Conversely, marketplaces that use API-based listing have distinct script files to handle their unique operations.
To obtain the necessary data, we rely on SQL scripts to extract information from the database. These scripts are intricate and require substantial disk space for optimal performance. Proficiency in PostgreSQL is essential for writing and executing these scripts effectively.
Now, let's explore the code structure and the common functions used across this codebase. For a detailed explanation of how the code functions, please refer to the following documentation: