go-clean-arch-grpc

command module
Version: v0.0.0-...-76ef0be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 11 Imported by: 0

README

go-clean-arch-grpc

This is an example of implementation of Clean Architecture in Go (Golang) projects. With GRPC

The explanation about this project's structure can read from this medium's post : https://medium.com/@imantumorang/implementing-grpc-service-in-golang-afb9e05c0064

The client project can seen here : https://github.com/bxcodec/sample-client-grpc

How To Run This Project
Dowload the project
# Download the project 
go get github.com/bxcodec/go-clean-arch-grpc

#move to directory
cd $GOPATH/src/github.com/bxcodec/go-clean-arch-grpc
 
# Install Dependencies
glide install -v

# Make File
make
Set the config

Open config.json Change to your own database config

{
  "debug": true,
  "server": {
    "address": ":8080"
  },
  "database": {
      "host": "localhost",
      "port": "33061",
      "user": "root",
      "pass": "password",
      "name": "article"
  }

}

Run Project
go run main.go

Make Sure you have run the article.sql in your mysql

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
delivery/grpc/article_grpc
Package article_grpc is a generated protocol buffer package.
Package article_grpc is a generated protocol buffer package.
config
env

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL