Skip to content

devmnj/REST-API-using-BookShelf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a Sqlite-Express API using Knex-BookShelf.The migrations tools can be used to create database table as follows

Create knex file

This process is already performed for this project npx knex init

Create the migration file

This process is already performed for this project npx knex migrate:make create-table-name

Run migration

To create the data tables (in the data folder) and database , we can simply run the file. npx knex migrate:latest

Updating the tables

To recreate the tables delete the sqlite file in the data folder and run the npx knex migrate:lates which will recreate the database and tables

For more guides and tutorials visit my blog

About

Express-Node REST API using Bookshelf ORM and SQLite database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published