Make sure you have npm
, gulp
and bower
installed
Run: gulp
to run the local server at localhost:3000
, the gulp tasks include live reloading for views, css in public/css and restarting the server for changes to app.js or js in routes/
Tests are written with mocha.
- Install: npm install -g mocha
- Run: mocha or npm test
- Sequelize is a based ORM for Node.js : http://docs.sequelizejs.com/
This app needs to be deployed along:
- https://github.com/squarescale/sqsc-demo-worker
rabbitmq
docker image
Mandatory common environment variables to add:
PROCESSING_QUEUE_NAME
: any nameREADING_QUEUE_NAME
: any nameNODE_ENV
:production
PROJECT_DB_USERNAME
: already provided by SquarescalePROJECT_DB_PASSWORD
: already provided by SquarescalePROJECT_DB_NAME
: already provided by SquarescaleRABBITMQ_HOST
: url of rabbitmq service in the cluster, usuallyrabbitmq.service.consul