The data (product types, categories, products) for Sunrise
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.mvn/wrapper
data
lib
scripts
src
.babelrc
.gitignore
.nvmrc
.travis.yml
LICENSE
README.md
mvnw
mvnw.cmd
package-lock.json
package.json
pom.xml

README.md

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