This repo for example implmentation golang and framework Revel, and this repo using database cockroachDB, this is simple example how to using Revel and CockroachDB Rest API
you can import collection in
utils/postman/go-postgre.postman_collection.json
You can read documentation for this repo using this link
go run application/migration/migrate.go
- you can configuration config (Database) in folder
conf/config.toml
and compare your local configs, database, host and depends
you can install dependencies using go mod
or one by one,
- install dependencies go get
go get github.com/jinzhu/gorm
go get github.com/lib/pq
go get github.com/revel/revel
go get github.com/spf13/viper
you can running this repo like revel running:
revel run -a go-reco