Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 2.01 KB

README.md

File metadata and controls

67 lines (43 loc) · 2.01 KB

Sunrise Data

Build Status

Introduction

This repo is a fork from original repo commercetools-sunrise-data. Fork was made to provide simple and clear way for users/contributors of our project to upload data about products into their our commercetools accout without problems and struggling.

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