Skip to content

The data (product types, categories, products) for Sunrise

License

Notifications You must be signed in to change notification settings

fulfillmenttools/commercetools-sunrise-data

 
 

Repository files navigation

Sunrise Data

Build Status

How to create a project with Sunrise Data

Before starting the import, make sure you have access to the Merchant Center. You will also need to run the application in this repository. Check that you meet the requirements and clone this repository to your computer.

1. Create your project

Open the Merchant Center and create an empty project (without sample data).

2. Prepare node environment for Import

Go to the root of this project, where the package.json is located and install all node dependencies:

npm install

3. Set your commercetools project credentials

  1. Create API client from Merchant Center. If you do not have account follow the steps to create a free trial account.
  2. Download the .env file from the API details page and place it on the project's root. It shold be named .env, rename if it differs. Client credential in dot env file

4. Usage

  1. Clean all existing project data and import new:

        npm run start
    
  2. Clean project data:

        npm run clean:data
    
  3. Import project data:

        npm run import:data
    
  4. Clean or import certain data (e.g. categories, products, customers, etc.)

        npm run clean:categories
    

    or

        npm run import:products
    

Requirements

  • Install Node.js (version 10 and up)

About

The data (product types, categories, products) for Sunrise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Shell 1.2%