Giter Club home page Giter Club logo

commercetools-sunrise-data's Introduction

Sunrise Data

Build Status

How to create a project with Sunrise Data

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

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

2. Prepare node environment for Import

Go to the root of this project, where the package.json is located and install all node dependencies:

npm install

3. Set your commercetools project credentials

  1. In the root of the project create a file named .env

  2. Set the .env file with your credentials:

      CTP_PROJECT_KEY = <your project key>
      CTP_CLIENT_ID = <your client ID>
      CTP_CLIENT_SECRET = <your client secret>
      CTP_API_URL = <your apiUrl> (i.e., api.commercetools.com)
      CTP_AUTH_URL = <your authUrl> (i.e., auth.commercetools.com)

    Url variables expect only the host name, not a full URL!

4. Usage

  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
    

Requirements

commercetools-sunrise-data's People

Contributors

acbeni avatar ccsalazarr-commercetools avatar ct-szilvia avatar dependabot[bot] avatar hajoeichler avatar harm-meijer avatar jpurnell avatar katmatt avatar lauraluiz avatar markus-azer avatar mat-burke avatar meastie avatar mmoelli avatar nikola-mladenovic avatar plaskevich avatar schleichardt avatar sshibani avatar trangng avatar valesauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.