A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository using Commander.
$ npm install
Make sure to first rename .env.example
to .env
, and update the values, accordingly. The defaults that need to be updated are as follow:
ADMIN_API_TOKEN=shpat_xxxxxx
SHOP_DOMAIN=my-store-123.myshopify.com
Then you should be able to successfully run the command (assuming token has sufficient Shopify Admin API privileges, such as read_products
).
# run without explicit build step
$ nest start -- findproducts -name glove
# run with build step first
$ npm run build
$ node ./dist/main.js findproducts -name glove
$ nest start -- findproducts -h
Usage: main findproducts [options]
A command for finding product variants by provided name substring, sorted by
price.
Options:
-name, --name [string] the input product name substring to search for
-all, --all a boolean flag, if you want to retrieve all products
-h, --help display help for command
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.