No description
  • Go 99%
  • Dockerfile 1%
Find a file
tycoon111222333 8668bc645d Merge branch 'warlord' into 'main'
Final merge from warlord before stop coding

See merge request prod-team-35/splitonly/backend!37
2024-11-10 10:53:46 +00:00
cmd fix: open mini app 2024-11-10 13:14:20 +03:00
docs delete cheque endpoint 2024-11-10 10:35:50 +03:00
internal Merge branch 'warlord' into 'main' 2024-11-10 10:33:03 +00:00
.dockerignore update .dockerignore 2024-11-08 12:08:30 +03:00
.env changed .env 2024-11-09 12:41:53 +03:00
.gitignore added local .env 2024-11-08 15:23:23 +03:00
.gitlab-ci.yml fix compose asap 2024-11-09 19:28:51 +03:00
compose.yml fix compose asap 2024-11-09 18:12:40 +03:00
config.yaml update: bot token 2024-11-10 00:34:53 +03:00
dev-compose.yml fix: broken migrations 2024-11-10 00:25:31 +03:00
Dockerfile update docker 2024-11-09 14:46:16 +03:00
go.mod add telegram bot 2024-11-10 10:54:43 +03:00
go.sum add telegram bot 2024-11-10 10:54:43 +03:00
pg-compose.yml update docs, add pg-compose.yml, add login 2024-11-07 17:22:13 +03:00
README.md Merge remote-tracking branch 'origin_fork/main' into WarlOrd/bug/AuthBug 2024-11-06 16:43:22 +03:00

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