Repository files navigation Hydrophonics (A dockerized RESTful Go microservice)
A Web based Microservice developed with Golang and uses Gin-Gonic http framework for routing, GORM for interacting with Postgres DB
Requirements for Running it on Mac OS
Go lang - version go1.13.6 darwin/amd64 (https://golang.org/dl/ )
Postgres for Mac - brew install postgresql
Docker for Mac or Docker Desktop (https://docs.docker.com/docker-for-mac/install )
Go Package Dependencies
go get -u github.com/gin-gonic/gin
go get -u github.com/gogo/protobuf
go get -u github.com/google/uuid
go get -u github.com/jinzhu/gorm
go get -u github.com/spf13/viper
go get -u gopkg.in/birkirb/loggers.v1
Clone the repo
Create a database in Postgres named hydrophonics
configure your host, port, password in - config.toml
Using docker-compose run docker-compose up --build
Useful links for references
https://gorm.io
About
Microservice developed with Golang and Gin-Gonic http framework
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.