Skip to content

ConwayCJ/pokedex_go

Repository files navigation

PokeAPI Go Client

This Go project demonstrates how to make a GET request to the PokeAPI to retrieve data about various aspects of Pokemon.

Project Description

The project fetches data from the PokeAPI, specifically details about a specified Pokémon. It performs an HTTP GET request to the PokeAPI, parses the JSON response, and prints the Pokémon's name, order, and types.

Prerequisites

  • Go 1.16 or higher
  • Internet connection (to fetch data from the PokeAPI)

Installation

  1. Clone the repository:

    git clone https://github.com/conwaycj/pokedex_go.git
    cd pokedex_go
  2. Initialize Go modules (if not already initialized):

    go mod init pokeapi-go-client
  3. Install dependencies (if any):

    go mod tidy

Usage

  1. Run the application:

    go build && ./pokedex_go.exe
  2. See commands:

    Pokedex > help
  3. map command example:

    Pokedex > map

    The first-time output for this command will be:

    1: canalave-city
    2: eterna-city
    3: pastoria-city
    4: sunyshore-city
    5: sinnoh-pokemon-league
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published