A simple Express.js API for managing a Pokemon team using the PokeAPI.
- View individual Pokemon details
- Manage a team of up to 6 Pokemon
- Catch Pokemon and add them to your team
- Release Pokemon from your team
npm install
npm startThe server will start on port 3000.
View a Pokemon's details (name, ID, and sprite image).
- Parameter:
id- Pokemon name or ID number - Example:
GET /pokemon/charmanderorGET /pokemon/4
View your current Pokemon team as HTML.
Add Pokemon to your existing team (up to 6 total).
- Body:
{ "catch": ["pokemon1", "pokemon2", ...] } - Example:
{ "catch": ["pikachu", "charmander"] }
Replace your entire team with new Pokemon (up to 6).
- Body:
{ "catch": ["pokemon1", "pokemon2", ...] }
Release a Pokemon from your team using their team ID.
- Parameter:
teamPokemonId- The unique team identifier for the Pokemon
- Express.js
- node-fetch
- uuid
- nodemon (development)
- Team is limited to 6 Pokemon maximum
- Each Pokemon gets a unique team ID when caught
- Data is stored in memory and resets when server restarts