Application hosted at heroku.
API url: https://clean-typescript-api.herokuapp.com/. See the documentation.
This is an API made in NodeJs, Typescript, TDD, Clean Architecture e SOLID Course, course led by Rodrigo Mango. In this course we develop an API using Node.JS, Typescript, Mongodb and all good programming practices, such as Clean Architecture, SOLID principles, TDD and Design Patterns. π Although i did this project following the course, i made my own changes and improvements.
You'll need Node.js, Mongodb and i recommend that you have installed the Yarn on your computer. After, you can run the scripts below...
git clone https://github.com/gabriellopes00/clean-typescript-api.git &&
cd clean-typescript-api &&
yarn install || npm install
yarn dev || npm run dev
yarn build && yarn start || npm run build && npm run start
You will need to have docker and docker-compose installed on your computer to run the commands below. Running this commands the containers will be pulled node:14 image and mongo:4 image, and the containers will be created on top of this images.
yarn up || npm run up
yarn down || npm run down
- All β―
yarn test
- Coverage β―
yarn test:ci
- Watch β―
yarn test:watch
- Unit(.spec) β―
yarn test:unit
- Integration(.test) β―
yarn test:integration
- Staged β―
yarn test:staged
- Verbose(view logs) β―
yarn test:verbose
- Lint(fix) β―
yarn lint
- Debug β―
yarn debug
Following the standard of the Conventional Commits.
- feature commits(amount) β―
git shortlog -s --grep feat
- test commits(amount) β―
git shortlog -s --grep test
- refactor commits(amount) β―
git shortlog -s --grep refactor
- chore commits(amount) β―
git shortlog -s --grep chore
- docs commits(amount) β―
git shortlog -s --grep docs
- build commits(amount) β―
git shortlog -s --grep build