Dev Challenge 2019 Online Round
Task description: stargateway.pdf
To run server:
- Execute:
docker-compose up
- Load spaceships:
docker exec -d stargateway npm run seeds
Server will be available on 80 port.
To run tests:
- Execute:
npm install
- Execute:
npm test
API description:
- Show all spaceships:
GET /spaceships
- Show individual spaceship and it's routes:
GET /spaceships/<spaceship-id>
- Find routes for spaceship:
POST /spaceships/<spaceship-id>/routes/<sector>
TODO:
- Dynamically generate swagger docs
- Listen 'gates.txt' changes(using fs.watch())
- Cache 'gatesMatrix' to the Redis
- Move controller functions to the separate module