Skip to content

stefanowolfs/pokedex-api-nestjs

Repository files navigation

Nest Logo

ProductAPI

Description

API made with NestJS using an hexagonal approach on the architecture to fetch pokemon data for a React-Native project serving as a BFF for it. Mobile project link pokedex-reactnative.

Entity Relation mapping

Since I'm creating a new BFF based on a pre-existing API, I thought it was also interesting to have an ER mapping for our SQLite database. Here you can access my ER diagram stored in google drive.

Setup for development

  • You need to configure your .env or host environment variables in order to connect to the database.

  • Install the project dependencies.

# dependencies installation
$ yarn
  • Then run the docker container which will serve the app.
# run docker container on port default 3000 in development mode
$ docker-compose up

Test

You can run the following commands to test the application.

# unit tests
$ npm run test

# test coverage
$ npm run test:cov

💡 Important thing to notice is that a new html file in /coverage/lcov-report/index.html containing more about the results.

Project status

  • Add containerization with docker.
  • Add enviroment variables.
  • Organize project structure using a more hexagonal approach.
  • Add downloadable pokemons endpoint.
  • Add unity tests.
  • Add pokemon details endpoint.
  • Add swagger for API Documentation.
  • Configure custom paths for file imports.

About

About

API made with NestJS using hexagonal architecture to fetch pokemon data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors