https://github.com/shahank42/poketext
A Pokemon catching and (sorta) exploring CLI application.
https://github.com/shahank42/poketext
bootdotdev cli cli-app golang pokeapi pokeapi-pokedex pokemon pokemon-api repl
Last synced: 5 months ago
JSON representation
A Pokemon catching and (sorta) exploring CLI application.
- Host: GitHub
- URL: https://github.com/shahank42/poketext
- Owner: shahank42
- License: mit
- Created: 2024-05-19T21:46:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T05:03:20.000Z (over 1 year ago)
- Last Synced: 2025-05-12T14:27:21.904Z (5 months ago)
- Topics: bootdotdev, cli, cli-app, golang, pokeapi, pokeapi-pokedex, pokemon, pokemon-api, repl
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PokeText
A Pokemon catching and (sorta) exploring CLI application.
Built for the corresponding Boot.dev course in an effort to learn the ins and outs of Golang by me.
# Installation
### Step -1: Install Go in your systemDownload a working version of go based on your system in the corresponding Go Lang Website.
### Step 0: Getting PokeText Installed
Download an appropriate executable file from the Releases page. That's it.
### Step 1: Execute the executable from a CLI
Kinda self-explanatory, ain't it?
### Step 3: Gotta catch 'em all!
You're in the PokeText CLI. Remember to use the `help` command if you're ever stuck
# Compiling
Easy peasy.```bash
git clone https://github.com/shahank42/poketext.git
cd poketext
go build && ./poketext
```This is for Loonix.
Do the corresponding thing if you're on Windows or some other OS.# Why Even Bother With Something Like This?
That's exactly what I asked myself before I started. Like everyone else, I dismissed the idea of creating a CLI Pokedex because, well, it seemed too easy and not "cool enough". But then I realized that despite how much I keep touting about Golang I didn't have any proper project written in it.
Welp time to change that. I was gonna finish this seemingly easy project in one night.It was more involved than I expected it to be. Not anything too difficult, but yeah definitely a good exercise of the brain.
Here are the things I learned along the way:
- Golang's package system for organizing code (which I absolutely love)
- Writing my own cache and cache middleware (yep, from scratch)
- How to think in the Golang way (can't really elaborate much on it, Go code has a certain feel to it which you can sense once you actually write a lot of it)
- Write code faster (I was practising using NeoVim so lmao)Overall it's nice, maybe I can keep on developing it and add a bunch of cool features if I get enough willpower and motivation.
# Contributing
Lol idk why anyone would, but sure any contributions are welcome.Maybe you're also learning Golang and are diving into open-source contributions? Well then PokeText can act as a cool first repository, just imagine contributing to some stranger's project :-)