This is a template node project.
MongoDB - NoSQL database with a javascript interface
node - Javascript platform to build network applications
express - Minimalist web framework a la Ruby's sinatra
mongoosejs - Asynchronous object modelling tool for MongoDB
less - Superset of CSS that compiles to CSS
coffeekup - HTML builder thact utilizes coffeescript
space-pen - Clientside HTML builder that builds on top of JQuery
now - Realtime RPC
mocha - BDD/TDD testing framework similar to Jasmine but modular
chai - BDD/TDD assertion library
sinon - Spy/stubbing/mocking framework
To get up and running with the project you will need to do the following:
- Install node and npm.
- Install supervisor via
npm install -g supervisor
(make sure npm's bin folder is in your PATH). - Install foreman via
[sudo] gem install foreman
. - Install mongodb.
- Checkout the source code and run
npm install
. make setup
TODO: Write a script to do installations
To run the app simply use make run
or make watch
(if you want the server to update when changes happen)
The tests are written in mocha and follow BDD convention. Use make test
to run them.
NOTE: If you add a new directory under tests, you will have to add them to the Makefile (TODO: Write a script to programmatically do this)