Skip to content

webistor/webistor-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webistor API - Version 0.6.1 Beta

Installing (Linux Debian)

Prerequisites

  • Install build tools sudo apt-get install gcc make build-essential g++
  • Install Node 0.10.x using Node Version Manager (recommended) or using Install Guide
  • Install MongoDB >= 2.6 using Install Guide
  • Install CoffeeScript npm install -g coffee-script

For Node and NPM These gists are helpful when you want/need to install node without sudo, which can prevent some access problems later on.

Installation

  • Clone repository git clone [email protected]:Tuxion/webistor-api.git
  • Install dependencies cd webistor-api 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>. Super tests are placed in test/<name>.coffee.

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 Assertion library.
  • Supertest: HTTP Assertion library.

CLI

Planned features