Skip to content

falcucci/pokedex

Repository files navigation

Pokedex Service

A project to consume pokemon info.


Run in Postman

Live Example: https://pokedex-falcucci.vercel.app

Running the service requires some dependencies.

  1. Docker or Docker Compose installed. Install instructions.

Running the service

docker-compose up -d --build
name description
POKE_API_URL poke api endpoint
FUNTRANSLATIONS_API_URL fun translations endpoint

install the dependencies

npm i

Or, run the development server by yourself to check better logs:

npm run dev

Go to http://localhost:3000 to access the serveless functions

Serveless functions are running at https://pokedex-falcucci.vercel.app/api/health

check it out the functions.

curl --location --request GET 'https://pokedex-falcucci.vercel.app/api/health'

GET pokemon by name

curl --location --request GET 'https://pokedex-falcucci.vercel.app/api/pokemon/ditto'

GET legendary pokemon by name

curl --location --request GET 'https://pokedex-falcucci.vercel.app/api/pokemon/mewtwo'

GET pokemon by name legendary translated

curl --location --request GET 'https://pokedex-falcucci.vercel.app/api/pokemon/translated/mewtwo'

Test Coverage

you can check if everything is fine running the assertions

npm run test

generate coverage

npm run coverage

Screenshot 2022-11-22 at 23 09 29

Deploy It Yourself 🎉

Deploy to Vercel

The Node Way™

"When applications are done well, they are just the really application-specific, brackish residue that can't be so easily abstracted away. All the nice, reusable components sublimate away onto github and npm where everybody can collaborate to advance the commons."

node.js is shiny

Releases

No releases published

Packages

No packages published

Languages