No description
- Go 99%
- Dockerfile 1%
Final merge from warlord before stop coding See merge request prod-team-35/splitonly/backend!37 |
||
|---|---|---|
| cmd | ||
| docs | ||
| internal | ||
| .dockerignore | ||
| .env | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| compose.yml | ||
| config.yaml | ||
| dev-compose.yml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| pg-compose.yml | ||
| README.md | ||
Web Template
Simple web application template for Go.
Libraries used:
- Fiber
- Gorm (PGSQL)
- Viper
- Zap
Running
# backend with Docker
# update .env and dev-compose.yml variables
docker compose -f ./dev-compose.yml up --build
PROD
Don't forget to update .env and config.yml. Also login to ghcr.io and update volumes for watchtower.
docker compose up -d
OpenAPI Docs
# 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