Skip to content

A fun practice cli app that displays basic Pokemon stats that are fetched from a remote location. It also implements caching.

Notifications You must be signed in to change notification settings

Prodigy00/pokedex-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokedex CLI - A Command-Line Pokémon Explorer

Pokedex CLI is a command-line application built in Golang that allows users to explore Pokémon data interactively. It fetches Pokémon details from an external API and provides various commands to search, list, and view Pokémon information.

Features

  • Search for Pokémon by name or ID
  • List all Pokémon in a paginated format
  • View detailed stats, abilities, and types of a Pokémon
  • Caching mechanism to speed up repeated queries
  • Simple and intuitive command-line interface

Tech Stack

  • Golang - The core language for development
  • REST API - Fetching Pokémon data

Installation

Prerequisites

Ensure you have the following installed:

  • Go (v1.19+ recommended)

Clone and Build

  1. Clone the repository:
    git clone https://github.com/Prodigy00/pokedex-cli.git
    cd pokedex-cli
  2. Install dependencies:
    go mod tidy
  3. Build the CLI application:
    go build -o pokedex
  4. Run the application:
    ./pokedex

Usage

Available Commands

Command Description
pokedex help Show available commands and usage
pokedex list List Pokémon with pagination
pokedex info <name> Get details about a specific Pokémon
pokedex catch <name> Attempt to catch a Pokémon and save it locally
pokedex cache View cached Pokémon data

Example Usage

  1. Get information about Pikachu:
    ./pokedex info pikachu
  2. List available Pokémon:
    ./pokedex list
  3. Catch a Pokémon:
    ./pokedex catch charmander

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to your branch (git push origin feature-name).
  5. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries or suggestions, feel free to reach out:


Gotta catch 'em all! 🎮

About

A fun practice cli app that displays basic Pokemon stats that are fetched from a remote location. It also implements caching.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages