clean-typescript-api
clean-typescript-api copied to clipboard
An API made using Typescript, NodeJs,Mongodb and all good programming practices, such as Clean Architecture, SOLID principles, TDD and Design Patterns. ๐
Clean Typescript API
Application hosted at heroku.
API url: https://clean-typescript-api.herokuapp.com/. See the documentation.
An API mande with
About this project โ
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.
Building ๐ง
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...
Cloning Repository
git clone https://github.com/gabriellopes00/clean-typescript-api.git &&
cd clean-typescript-api &&
yarn install || npm install
Running API (development environment)
yarn dev || npm run dev
Generating Build and running build
yarn build && yarn start || npm run build && npm run start
Docker ๐ณ
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
Tests (jest) ๐งช
- 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 (eslint) ๐ญ
- Lint(fix) โฏ
yarn lint
Debug ๐
- Debug โฏ
yarn debug
Statistics of the types of commits ๐๐
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