A LocomotiveJS + Sequelize boilerplate project.
This is a really simple LocomotiveJS boilerplate which implements a very basic user management system, using the Sequelize ORM to provide models.
It should be entirely self-contained, and will create a SQLite database called locomotive-sequelize-boilerplate.db
in the current directory. This is just a test database, remove it and it will be re-created when you start the Locomotive
server again.
First, clone this repository:
git clone [email protected]:robertklep/locomotive-sequelize-boilerplate.git
Second, install dependencies:
cd locomotive-sequelize-boilerplate
npm install -l
Next, start the server:
./node_modules/locomotive/bin/lcm.js server
Or, if you have LocomotiveJS installed globally:
lcm server
Finally, point your browser to http://localhost:3000!
This project contains a very basic test setup, all it does is boot the
LocomotiveJS application and test if the User
model exists. Run the test
like this:
npm test