- Install Node From website
- Install MongoDB From website
- Install Node Package Manager
sudo chown -R $USER /usr/localcurl http://npmjs.org/install.sh | sh
- Clone repository
git clone git@github.com:Avaq/node-skeleton.git - Install dependencies
cd node-skeletonnpm install - Compile CoffeeScript
cake build
- Start the application.
cake startorcake -w startto restart automatically on changes.
- Install git flow
sudo apt-get install git-flowOr try: Install guide - Initialize git flow
cd node-skeletongit flow init
- Create your feature branch
git flow feature start <name> - Watch CoffeScript
cake watch - Watch JavaScript
cake -w start - Don't commit your local environment settings: How to ignore files
Write your tests in /test/<path>. The convention is to make the same as the path
to the file that you're testing in /src/<path>. Generic tests may be placed
in test/<name>.coffee, but should be avoided.
More about creating tests can be found in the documentation below. Tests look like this:
describe "Mocha", ->
it "should be able to describe stuff", ->
describe.must.exist()Run tests using cake test or cake --watch test to continuously test.
- Lodash: Utility library used.
- CoffeeScript: Source code language.
- Node: JavaScript built-ins.
- Express: Framework used.
- Connect: Framework used by Express.
- Mongoose: Database abstraction layer used.
- MongoDB: Database used.
- Bluebird: Promise library used.
- Node Restful: Mongoose exposure to REST helpers.
- Node Logging: Logging library used.
- Node bcrypt: Hashing and cryptology library used.
- Node rand-token: Token generating library.