Skip to content

execb5/pokedex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages