/api

The Friends Bet API

Primary LanguageJavaScriptMIT LicenseMIT

Friends Bet API

Build Status Coverage Status

Friends Bet is an application that allows you and your friends to bet on sport results.

The API uses:

  • Sails.js, a Node.js MVC framework
  • MongoDB

INSTALLATION

With node installed:

# Get the latest stable release of Sails
$ sudo npm install sails -g

# Clone the repo
$ git clone https://github.com/FriendsBet/API.git FriendsBetAPI

# cd into the new folder
$ cd FriendsBetAPI

# Install dependencies
$ npm install

DEV LAUNCHING

Run MongoDB:

# Run your MongoDB server
$ mongod

Lift Sails:

# Fire up the server
$ sails lift

The API is now running on port 1337.

TESTING

With the MongoDB server running:

# Launch the tests
$ npm test