1.0.11 • Published 4 years ago
@tgolding55/create-node-api v1.0.11
Create-node-api
This is a simple node api boilerplate, includes a user model with authorization middleware and routes.
Getting Started
To install run:
npx @tgolding55/create-node-api my-appNext, fill out the .env, dev.env and test.env files with your environment variables.
To test run:
npm testTo run in dev mode, run:
npm run start:devTo start in prod, run:
npm startFinally to seed your database you can use:
When in dev (seeds/seedDev.js will be used)
npm run seedWhen in prod (seeds/seedProd.js will be used)
NODE_ENV='prod' node seedDB.js