Simple web application template for Go.
- Fiber
- Gorm (PGSQL)
- Viper
- Zap
# backend with Docker
# update .env and dev-compose.yml variables
docker compose -f ./dev-compose.yml up --build
Don't forget to update .env and config.yml. Also login to ghcr.io and update volumes for watchtower.
docker compose up -d
# 1. Install OpenAPI generator
# Don't forget to add this to your path
go install github.com/swaggo/swag/cmd/swag@latest
# 2. Generate docs
# add this to your build configuration to regenerate it automatically
swag init -g cmd/main.go