- Use Node.js 16x LTS version.
- Install the project dependencies.
npm i
- Run the API on your local environment.
npm start
- Run the tests.
npm test
- Map the
results
array of the response ofGET /pokemons
as follow:
- Capitalizing the
name
of the pokémon:bulbasur
->Bulbasur
. - Adapt the
url
of the pokemon details to our own server URL. Just for the exercise purpose, you can use http://localhost:3000 as URL host:https://pokeapi.co/api/v2/pokemon/1/
->http://localhost:3000/pokemons/1
.
- Make a unit test of the previous mapping function.
- Manage limit and offset query params on the
GET /pokemons
endpoint. - Creates a new GET API endpoint (to your election 😉) which must integrates the - PokéAPI.