Ultra.io coding exercise
$ yarn install
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
Before you start the docker container, please do the following
- Create a
.env
and and a.env.integration
file in the root of the app - Copy the content in the .env.example into both files
- Fill in the appropriate information
For docker, run the following commands
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d
docker-compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from test
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --abort-on-container-exit
The features of this project include the following.
- Create, fetch, delete and update games
- Fetch a publisher data via games API
- Process that automatically remove games having a release date older than 18 months and then apply a discount of 20% to all games having a release date between 12 and 18 months
The API documentation for testing the endpoints is located here