/salva-template

Template structure for easy and fast started in GO (API)

Primary LanguageGoOtherNOASSERTION

Salva Template (Go Architecture)

Salva template easily starter for development apis in go.

Dependency

  1. Viper (https://github.com/spf13/viper)
  2. Gorm (https://github.com/go-gorm/gorm)
  3. Fiver (https://github.com/gofiber/fiber)
  4. Yaml (https://github.com/go-yaml/yaml/tree/v2.4.0)
  5. Salva (https://github.com/yahyrparedes/salva)

How to run local:

make run
o
swag init -g cmd/main.go --output docs
go run cmd/main.go

How to run prod:

make prod
o
swag init -g cmd/main.go --output docs
APP_ENV=prod go run cmd/main.go

Generate docs

https://github.com/swaggo/swag

swag init -g cmd/main.go --output docs

Salva CLI

  • Add new endpoint for app
salva magic 

Example endpoint User

salva magic  user