Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Latest commit

 

History

History
88 lines (66 loc) · 2.9 KB

README.md

File metadata and controls

88 lines (66 loc) · 2.9 KB

Application - Version 0.0.1 Alpha

Installing

Prerequisites

  • Install Node From website
  • Install MongoDB From website
  • Install Node Package Manager sudo chown -R $USER /usr/local curl http://npmjs.org/install.sh | sh

Installation

  • Clone repository git clone [email protected]:Avaq/node-skeleton.git
  • Install dependencies cd node-skeleton npm install
  • Compile CoffeeScript cake build

Running

  • Start the application. cake start or cake -w start to restart automatically on changes.

Development

Prerequisites

Coding

Testing

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.

Documentation

Application

Testing

  • Mocha: Test runner and describer
  • Must: BDD asserting library.