Skip to content

commercetools/commercetools-sunrise-data

Repository files navigation

Sunrise Data

Build Status

Prerequisites

  1. Access to a commercetools Project and the Merchant Center. If you do not have a commercetools Project, follow our Getting started guide.
  2. Node.js (version 10 or later) must be installed on your computer.

Setting up your Sunrise Data project

  1. Clone this repository to your computer.
  2. Go to the root of the project, where package.json is located, and install all node dependencies with:
npm install
  1. Create an API client in the Merchant Center.
  2. Download the Environment Variables (.env) file.

Client credential in dot env file

  1. Rename this file .env and move it to the root of the project.

The .env file in Visual Studio Code

Commands

  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
    

    or

        npm run import:customers
    

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published