Skip to content

Microservice developed with Golang and Gin-Gonic http framework

Notifications You must be signed in to change notification settings

pavankumar-go/hydrophonics

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

Build

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

Steps to Run

  1. Clone the repo
  2. Create a database in Postgres named hydrophonics
  3. configure your host, port, password in - config.toml
  4. Using docker-compose run docker-compose up --build

Useful links for references

  1. https://gorm.io

Roadmap

  • Implement JWT for authentication
  • Implement RBAC for authorization
  • Dockerize to run it in a container
  • add more attributes to existing tables

About

Microservice developed with Golang and Gin-Gonic http framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published