Yapo - [Calculate PI with decimals] Use cases for (Yapo interview)
- Install the dependencies that the project has using this command (Only fisrt time or when re-using):
docker-compose --file docker/docker-compose.yml run --rm yapo-api npm install
- To run your project run this command:
docker-compose --file docker/docker-compose.yml up -d
- To remove the docker execution run this command:
docker-compose --file docker/docker-compose.yml down
To speed up the execution of commands, the use of Makefile is introduced, which has the following useful commands:
- Run project in detached mode:
make start
- Run project not detached:
make up
- Build a image:
make build
- Run tests:
make test
- Install dependecies:
make install
- For help and more commands:
make help
Make sure you have make
installed!
Unit testing:
npm run test
Unit testing on dist build:
npm run test_dist