Categorygithub.com/execb5/pokedex
module
0.0.0-20241111172934-201036aff8b4
Repository: https://github.com/execb5/pokedex.git
Documentation: pkg.go.dev

# README

Pokedex

This is a toy project I've been working on to teach myself the go programming language.

Data and Database

All data and database structure are from the pokedata repo, but I ended up adding keys and changing the names a little bit. Also had to change the order of rows on the pokemon csv to make it easier to be inserted since now it has a self referencing key.

Migrations

Migrations are managed using goose.

Run all pending migrations

goose -dir database/migrations postgres "host=localhost user=pokedex password=pokedex dbname=pokedex port=5432 sslmode=disable" up

Reset the db running the down of every migration

goose -dir database/migrations postgres "host=localhost user=pokedex password=pokedex dbname=pokedex port=5432 sslmode=disable" reset

Down the last applied migration

goose -dir database/migrations postgres "host=localhost user=pokedex password=pokedex dbname=pokedex port=5432 sslmode=disable" down

Air

I've been using Air for live reloading. The only change I've made to the default configuration is the executable name since it would've used main otherwise.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author