naming subject to change
use npm start
to start development server
use npm run build
then npm run start:prod
to start production server
every tests command has a coverage test report
use npm test
to run normal test
use npm run test:watch
to run test on every code changes
to fix eslint error, you can run
npm run eslint:fix
run this command
npm run migrate
or
npm run migrate -- up <version>
or to rollback, you can run
npm run migrate:down [-- <version>]
to start a new migration task, simply create migration file using this command
npm run migrate:create [-- <name>]
to add items on /seed/<ModelName>.js
running the _id
follow hexadecimal number from previous items then run seed script
to run seed script on dev environment run this command
npm run seed:dev
or
npm run seed
on production environment