marlowe19 / commercetools-sunrise-data

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sunrise Data

Build Status

How to create a project with Sunrise data

Before starting the import, make sure you have access to the Admin 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

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

2. Prepare node environemnt for Import

  1. Go to the root of this project, were the package.json is located.
  2. Install all node dependencies
        npm install
  3. Set commercetools project credentials as npm config values:
         npm config set sunrise:authUrl authUrl - (i.e. auth.commercetools.com)
         npm config set sunrise:apiUrl apiUrl - (i.e. api.commercetools.com)
         npm config set sunrise:projectKey projectKey
         npm config set sunrise:clientId clientId
         npm config set sunrise:clientSecret clientSecret
     
    *Url variables expect only the host name, not a full URL.

3. Import basic data

  1. import project setting, delivery zones / tax setting, categories and products
        npm run start

4. Import additional data (optional)

  1. import inventories
        npm run import:inventory

How to use the application

Requirements

  • Install Java 8
  • Install Node.js ^8 or ^9 (node 10 is not compatible)

On Issues with the node version (e.g. after switching the version), run npm rebuild

About

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

License:Apache License 2.0


Languages

Language:Java 78.3%Language:JavaScript 21.1%Language:Shell 0.6%