This project was created as part of my boot.dev education. Creating a pokedex and a way to interact with the pokemon universe is how they taught us how to interact with an API and handle JSON data in Golang.
- JSON Marshal & Unmarshal in Golang
- Creating a Webserver
- Consuming 3rd-party API Endpoints
- Creating basic CLI commands with Golang
To interact with my code you just have to clone the repo, build the project and use the CLI commands I will list out below.
If that does not mean much to you, you can follow the directions below to do exactly this!
Install Golang version >= 1.23 using whichever terminal you typically use
Clone my github repo into a directory of your choosing and cd
into it
Build and run this go project with one of the two following methods
go build -o pokedex . && ./pokedex
go run .
Note: The first option builds a binary then runs in. The second option does not build a binary rather compiles then runs the go project
You can now interact with the project using the CLI Commands listed below!
Command Name | CLI Command |
---|---|
Help - List command descriptions | help |
Exit - Exit the program | exit |
Map - List next locations | map |
Mapb - List previous locations | mapb |
Explore - See pokemon in an area | explore <location-name> |
Catch - Catch a pokemon | catch <pokemon-name> |
Inspect - Inspect stats of a pokemon | inspect <pokemon-name> |
Pokedex - See all pokemon you have caught | pokedex |
I was a lot of fun to create this project. Following a guide allowed me to reference it when I struggled with learning a particular concept. All of the code written is my own and anything that resembles the code from the original project is an attempt at following best practices.
You can see the project description and steps here