The backend Server with RESTful API's for ExtremeResults
This server is used by the Extreme Results Web App, for which the code can be found here: https://github.com/bjaanes/ExtremeResults-WebApp
The server is build using Node.js and Express and exposes a set of API's that can be found in the API.md file.
- Node.js with npm
Install dependencies for building:
Build and run
To build and run the application, you can just use
When starting the application, there are several environment variables that are searched for, but none of them are required:
|Environment Variable||Description||Default Value|
|MONGO_SERVER||Mongo server url||mongodb://localhost/xr|
|MONGO_USERNAME||Mongo username||Nothing - for no auth server|
|MONGO_PASSWORD||Monog passowrd||Nothing - for no auth server|
The server is tested using some Unit Tests and a lot of Integration Tests.
To run the unit tests in a TDD matter
To run the Integration Tests
npm run it