Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 660 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 660 Bytes

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