Skip to content

rsirres/locomotive-sequelize-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

locomotive-sequelize-boilerplate

A LocomotiveJS + Sequelize boilerplate project.

What it is

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.

How to use

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!

Testing

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

About

A LocomotiveJS + Sequelize boilerplate project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published