Skip to content

The data (product types, categories, products) for final project RSSchool FE 2023 Q1

License

Notifications You must be signed in to change notification settings

Tedzury/commercetools-sushisushi-data

 
 

Repository files navigation

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
    

About

The data (product types, categories, products) for final project RSSchool FE 2023 Q1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Shell 1.2%