chec / seeder

Chec seeder tool, used in example stores to seed product data when creating them with the CLI's "demo store" command
https://commercejs.com/blog/getting-started-with-the-chec-cli/
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link
chec-cli cli commercejs ecommerce hacktoberfest seeder

Chec Seeder

Version License

A small utility to help with seeding data in your Chec dashboard

Download

npm install @chec/seeder

Configuring

You can define following properties as environment variables:

Usage

As a NPM script

Add a seed command to your package.json

{
    "scripts": {
        "seed": "chec-seed path/to/json/files"
    }
}

Global usage

This script can be installed globally:

npm install -g @chec/seeder

Then you can use this helper outside of a project to seed data easily, like so:

chec-seeder path/to/json/files

Within code

You can also use this package within your Node.js projects:

const seed = require('@chec/seeder');

seed('path/to/json/files');