https://github.com/chec/seeder
Chec seeder tool, used in example stores to seed product data when creating them with the CLI's "demo store" command
https://github.com/chec/seeder
chec-cli cli commercejs ecommerce hacktoberfest seeder
Last synced: about 2 months ago
JSON representation
Chec seeder tool, used in example stores to seed product data when creating them with the CLI's "demo store" command
- Host: GitHub
- URL: https://github.com/chec/seeder
- Owner: chec
- License: bsd-3-clause
- Archived: true
- Created: 2019-11-29T22:38:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T03:14:28.000Z (over 2 years ago)
- Last Synced: 2025-03-23T14:42:47.036Z (3 months ago)
- Topics: chec-cli, cli, commercejs, ecommerce, hacktoberfest, seeder
- Language: JavaScript
- Homepage: https://commercejs.com/blog/getting-started-with-the-chec-cli/
- Size: 85 KB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Chec Seeder
[](https://npmjs.org/package/@chec/seeder)
[](https://github.com/chec/seeder/blob/master/LICENSE.md)A small utility to help with seeding data in your Chec dashboard
## Download
```bash
npm install @chec/seeder
```## Configuring
You can define following properties as environment variables:
- `CHEC_SECRET_KEY` - (required) - Your Chec secret API key.
- `CHEC_API_URL` - (optional) - API URL, defaults to `api.chec.io`.## Usage
### As a NPM script
Add a seed command to your package.json
```json
{
"scripts": {
"seed": "chec-seed path/to/json/files"
}
}
```### Global usage
This script can be installed globally:
```bash
npm install -g @chec/seeder
```Then you can use this helper outside of a project to seed data easily, like so:
```bash
chec-seeder path/to/json/files
```### Within code
You can also use this package within your Node.js projects:
```js
const seed = require('@chec/seeder');seed('path/to/json/files');
```