TDD products api was developed with these technologies
This project's API has been developed with the primary objective of studying and exploring the core principles of Test Driven Development (TDD) and automated testing in general.
This version provides more clarity and completeness by specifying the purpose of the API and emphasizing its objective of studying and exploring the principles of TDD and automated testing.
# clone this repo
$ git [email protected]:LucasPereiraMiranda/tdd-products-api.git
# run with compose services (app and mysql)
$ docker-compose up
# open new terminal and run migrations (replace app_docker_container_id to our app docker container id)
$ docker run exec -it app_docker_container_id bash
# run migrations inside container
$ npm run typeorm migration:run
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov