- Ensure you are using Node version v10.16.0
npm install
to install the dependencies- Set up the DB in MySQL. Read the
How to use Knex Migrations?
section. - Create a .env file in the root directory of the project and update the required variables. You can use
sample.env
as the skeleton. nodemon server.js
to run the server.
for create and delete the table we can run some commands:-
0. knex migration:make <migration file name>
1. knex migration:latest
2. knex migration:rollback
Happy coding ):