For a quick setup, just run make setup in the root directory. Then make run will start the db and app at http://localhost:3000.
-
Install nodejs (preferably from own repo) and npm:
add-apt-repository ppa:chris-lea/node.js && apt-get update apt-get install nodejs
-
Install mongodb. Needed for our database:
apt-get install mongodb
-
Set node environment ($NODE_ENV):
NODE_ENV=development
-
Install all node modules. A list is available further down.
npm install
-
Start mongod and import testing database:
mongod & mongorestore -d rosedu-challenge rchallenge_db/rosedu-challenge
-
Run mongod and start the app. Then visit http://localhost:3000.
mongod & node app.js
This is a list of the modules we use (package.json):
- express - web development framework
- everyauth - authentication solution
- connect - high performance middleware framework
- jade - Jade template engine
- mongoose - MongoDB ODM
- markdown - Markdown parser for javascript
- nodemailer - send emails
Use package.json to install them all:
npm install package.json