An open API service indexing awesome lists of open source software.

https://github.com/siddhant-vij/pokedex

Practice project | REPL pokedex built with Golang in CLI.
https://github.com/siddhant-vij/pokedex

caching go json pokeapi pokedex

Last synced: 3 months ago
JSON representation

Practice project | REPL pokedex built with Golang in CLI.

Awesome Lists containing this project

README

          

# Pokedex

A Pokedex is just a make-believe device that lets us look up information about any Pokemon - things like their name, type, and stats. A command-line REPL, using the PokéAPI to power all of the data that's needed.


## Goals

- Parse JSON in Go
- Making HTTP requests in Go
- A CLI tool interacting with a back-end API
- Local Go development and tooling
- Caching to improve performance
- Update the CLI to support the "up/down" arrow to cycle through previous commands
- Persist a user's Pokedex to disk so they can save progress between sessions


## Future Improvements
- Simulate battles between pokemon
- Add unit tests
- Refactor your code to organize it better and make it more testable
- Keep pokemon in a "party" and allow them to level up
- Allow for pokemon that are caught to evolve after a set amount of time
- Use the PokeAPI to make exploration more interesting. For example, rather than typing the names of areas, maybe you are given choices of areas and just type "left" or "right"
- Random encounters with wild pokemon
- Adding support for different types of balls (Pokeballs, Great Balls, Ultra Balls, etc), which have different chances of catching pokemon


## License

Distributed under the MIT License. See [`LICENSE`](https://github.com/siddhant-vij/Pokedex/blob/main/LICENSE) for more information.