SUNRISE sample data

Import sample data to your Project

Installing this sample data removes all existing data from your Project. Do not run it in a non-test Project.

When commercetools Projects are created, they are completely empty by default. To add sample data to your Project, you can import the SUNRISE data.

SUNRISE data includes Products, Categories, Customers, and other demonstration data that can assist developers and Merchant Center users with learning how commercetools works.

Requirements

Importing the SUNRISE data requires a commercetools API Client and a small import app that you can clone and build from GitHub.

Node.js must be installed to set up and run the import app.

Download your API Client Environment Variables file

  1. Follow the instructions in our Getting started tutorial to create an API Client.

  2. After your API Client is created, select Environment Variables (.env) from the drop-down list and click the download icon.

How to download the Environment Variables (.env) file

  1. Rename the downloaded file .env.

Create and run the import app

  1. Create a new folder and open it in your code editor or terminal.

  2. Clone the following SUNRISE data Git repository to this folder:
    https://github.com/commercetools/commercetools-SUNRISE-data.git

  3. A folder called commercetools-sunrise-data is created.

  4. Copy .env into this folder.

The contents of the commercetools-sunrise-data folder in Visual Studio Code

  1. Use the command npm install to install required dependencies.

  2. Use the command npm run start to start importing the SUNRISE data.

The import process will run, and you can view its progress in the terminal.

During the import process you can continue using Merchant Center as normal. The sample data will begin to appear during the import process.

Once finished, you will have a complete sample data set ready to use.

A screenshot of a full Product list

More information

Further information for the SUNRISE data and extra commands for the import app can be found at GitHub.