• Stars
    star
    106
  • Rank 315,508 (Top 7 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go clean Architecture with GRPC

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

More Repositories

1

go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
Go
7,739
star
2

faker

Go (Golang) Fake Data Generator for Struct. [Notes]This repository is archived, moved to the new repository https://github.com/go-faker/faker
Go
2,077
star
3

dbresolver

Golang Database Resolver and Wrapper for any multiple database connections topology, e.g. master-slave replication database, cross-region application, and for separated ReadWrite (RW) and ReadOnly (RO) database connections
Go
124
star
4

go-postgres-pagination-example

An example project for pagination in Postgres with Golang
PLpgSQL
57
star
5

httpcache

Get a working HTTP Cache in Go (Golang) with only 3 lines of code!!!!
Go
55
star
6

github-readme-medium-recent-article

Add Your Recently Published Medium Articles to Your GitHub Readme
TypeScript
54
star
7

gotcha

gotcha: inmemory-cache in Go (Golang) with customizable algorithm
Go
20
star
8

integration-testing

Go
18
star
9

simpleshell

Read about this repository here
Go
15
star
10

Article-Management-REST-API

Articles Management API
Go
8
star
11

saint

Go (Golang) Math Library for Integer Operations
Go
7
star
12

sample-client-grpc

Client GRPC
Go
7
star
13

goson

⚡️[WIP] Golang JSON Schema extractor from raw-json string
Go
7
star
14

tweetor

This project is a simple tutorial how to deploy golang application to Kubernetes
Go
4
star
15

Go-Simple-Flatbuffer

Read post about this project here:
Go
4
star
16

AndroidPagination-ListView-Next-prev-

Example of pagination in ListView
Java
1
star
17

images_hosting

My Personal Image Hosting
1
star
18

SMS-Gateway-Android

Sender-receiver of SMS using android Apps
Java
1
star
19

gomodtrial

Trying Go Module - new feature in Go 1.11
Go
1
star
20

gomodmultiplies

Go
1
star