Skip to content

galilean-traders/analysis

Repository files navigation

analysis

a Sails application

Install

sudo apt-get install nodejs
sudo npm install -g sails
sudo npm install -g coffee-script
sudo npm install -g mocha # for the tests
npm install

Database

as the postgres user:

sudo -u postgres createuser -s -P analysis # enter password: analysis
sudo -u postgres createdb analysis -O analysis

Test

To run all the tests:

grunt test

To run a specific test file, e.g. User.test.coffee

mocha test/unit/User.test.coffee

Run

forever -w start app.js

Logs

forever logs app.js -f

Quit

forever stop app.js