Playground for NodeJS, Express and Sqlite3
npm, nodejs
Application uses bookshelf.js library as ORM for node.js and Knex query builder.
npm install
node app.js
DB migration is handled by knex. Scripts are stored in migrations subdirectory. You may want to set up knex to run globally first
npm install -g knex
To migrate database simply run
knex migrate:latest --env development
knex seed:run --env=development
http://perkframework.com/v1/guides/database-migrations-knex.html