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

friendsbet/api

Repository files navigation

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