Skip to content

nlypage/webTemplate

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •