A project to consume pokemon info.
Live Example: https://pokedex-falcucci.vercel.app
Running the service requires some dependencies.
- Docker or Docker Compose installed. Install instructions.
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'
you can check if everything is fine running the assertions
npm run test
generate coverage
npm run coverage
"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."