Code for Knex.js Tutorial
Code for Knex.js Tutorial.
After cloning the repository, install the dependencies:
npm i
This project uses SQLite by default. If you need to make changes to that make changes in db/knexfile.js
.
After that, run the following to execute the migrations:
npm run migrate
Then, add demo data:
npm run seed
To run the server:
npm start