This service allows manage a pokedex database
This project is building using NestJS and MongoDB
Nest packages:
Other featured packages:
Technology | Version |
---|---|
NodeJS | 20.X |
MongoDB | 5.0 |
Notes:
- There is a docker-compose.yml with mongodb dependency, just use nvm to switch node version.
- Install dependencies
- Install husky hooks
- Launch server
Install dependencies
yarn install
Install and configure husky
npx husky install
You can launch some architecture dependencies with Docker using Docker Compose.
Start services
yarn hello
Stop services
yarn bye
Services | - |
---|---|
MongoDB | 5.0 |
Swagger | View |
Compodoc | View |
Live API | View |
POST /v1/pokemons/sync
fetch all pokemons from pokeapi and save into the database.POST /v1/pokemons/clean
remove all pokemons from the database
Create unit testings to ensure domain is working well: happy path and handled errors.
Run unit testing band
yarn test
Run end to end testing band
yarn test:e2e