Skip to content

Repository files navigation

backend

wakeup

docker-compose up --build

stop and remove containers

docker-compose down -v --remove-orphans

swagger

swagger address

http://localhost:8080/swagger/index.html

install swag

go get -u github.com/swaggo/swag/cmd/swag

add to path

export PATH=$(go env GOPATH)/bin:$PATH

generate swagger docs

swag init -g docs/swagger.go

migrate

install migrate

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

add to path

export PATH=$PATH:$(go env GOPATH)/bin

create migration

migrate -path ./migrations \
  -database "postgres://<user>:<password>@<host>:5432/<dbname>?sslmode=require" \
  up

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages