-
Source Code on GitHub:
Introduction
Pokedex CLI is a command-line interface application written in Go. It allows users to interact with the Pokemon API to explore the map, catch and inspect Pokemon.
Technologies
- Go
- Pokemon API (https://pokeapi.co/)
Features
Commands
- Map Locations: The application allows users to explore the map using the
map&mapbcommand. This will display the list of Pokemon available in the map.mapcommand displays next 20 locations in the map.mapbcommand displays the previous 20 locations in the map.
- Explore Location: Users can explore the location for Pokemons using the
explorecommand followed by the location’s name. - Catch Pokemon: The application allows users to catch Pokemon using the
catchcommand followed by the Pokemon’s name. This depends on Pokemon’s base level. - Inspect Pokemon: Users can inspect the caught Pokemon using the
inspectcommand followed by the Pokemon’s name. - Pokedex: Users can view the list of Pokemon they have caught using the
pokedexcommand.
Implementation
- API: The application interacts with the Pokemon API.
- Cache: The application caches the Pokemon data to reduce the number of API calls.
Installation
To install the application, you need to have Go installed on your machine. You can download it from here. Once Go is installed, you can clone this repository and build the application.
git clone https://github.com/Chaitanya-Shahare/pokedexcli.git
cd pokedexcli
go build
Usage
To run the application, you can use the following command:
./pokedexcli
Map Locations
pokedex > map
Explore Location
pokedex > explore location_name
Catch Pokemon
pokedex > catch pokemon_name
Inspect Pokemon
pokedex > inspect pokemon_name
Pokedex
pokedex > pokedex
Exit
pokedex > exit
Links
- Source Code: https://github.com/Chaitanya-Shahare/pokedexcli
- Pokemon API: https://pokeapi.co/