BTC Engine for Planetary Annihilation Tournaments
Look at the Github issues for information about existing (and planned) services: https://github.com/jtibble/pabtc/issues Tests demonstrating existing services can be found at https://github.com/jtibble/pabtc/tree/master/service/api/test
To Run REST API
-
Clone Project to your local machine
-
'npm install' in project root
-
Install mongodb and run it on the default port ('mongod --dbpath C:\tmp')
-
Set the NODE_ENV system variable to 'local', 'dev', or 'prod'
-
Insert a fake document into a mongodb collection 'keys' like this (and as seen in the .travis.yml file: {key: 'asdf123'}
-
'node service/main.js' and the REST API will start on port 8080
To Run Tests
- 'npm test'