Go to file
2020-12-29 13:52:15 +01:00
db Some kind of starting point 2020-12-29 13:46:58 +01:00
src Removed unused file 2020-12-29 13:52:15 +01:00
.env_example Some kind of starting point 2020-12-29 13:46:58 +01:00
.gitignore Some kind of starting point 2020-12-29 13:46:58 +01:00
go.mod Some kind of starting point 2020-12-29 13:46:58 +01:00
go.sum Some kind of starting point 2020-12-29 13:46:58 +01:00
main.go Some kind of starting point 2020-12-29 13:46:58 +01:00
README.md Some kind of starting point 2020-12-29 13:46:58 +01:00

Databaes migration

Done using dbmate. Db stuff is stored in ./db.

Example of running the migrations:

docker run --rm -it -e DATABASE_URL="postgres://postgres:postgres@127.0.0.1:5432/pwrpln?sslmode=disable" --network=host -v "$(pwd)/db:/db" amacneil/dbmate up

Example of setting up a postgres SQL server:

docker run -d --name postgres --network=host -e POSTGRES_PASSWORD=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=pwrlpln postgres