1.0.25 • Published 1 year ago

eleave-back-api-server v1.0.25

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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