eleave-back-api-server
v1.0.25
Published
eleave-back-api-server
Downloads
1
Readme
template-back-API-nodejs
used @chassis-app/jc-jsonschemagenerator as helper package
Run npm install
Available Scripts
In the project directory, you can run:
npm run dev
To start the app in development mode. Open http://localhost:8081 to view it in the browser.
npm run start
For production mode
npm run test
Run the test cases.
How to add new knexjs migration & seed data
Migration:
npx knex migrate:make <your-migration-file-name>
Seed:
npx knex seed:make <your-seed-file-name>
Note: seed file name should be prefixed by number (for ex: 01_auth_user
) so that knex will process them in an expected order
How to run Migration
knex migrate:latest
knex seed:run
How to undo all Migration
knex migrate:rollback --all