Skip to content
/ salva-template Public template

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

License

Notifications You must be signed in to change notification settings

yahyrparedes/salva-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published