{"id":21036484,"url":"https://github.com/moemoe89/go-grpc-server-tisa","last_synced_at":"2026-04-12T00:48:01.829Z","repository":{"id":57692471,"uuid":"252097406","full_name":"moemoe89/go-grpc-server-tisa","owner":"moemoe89","description":"👴 This repo for practicing gRPC server using Golang, PostgreSQL, Docker, Travis CI and CodeCov","archived":false,"fork":false,"pushed_at":"2020-07-22T14:57:14.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T20:28:54.440Z","etag":null,"topics":["codecov","docker","go","golang","grpc","postgresql","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moemoe89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-01T07:01:23.000Z","updated_at":"2020-07-22T14:57:16.000Z","dependencies_parsed_at":"2022-09-26T21:00:57.578Z","dependency_job_id":null,"html_url":"https://github.com/moemoe89/go-grpc-server-tisa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moemoe89/go-grpc-server-tisa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-grpc-server-tisa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-grpc-server-tisa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-grpc-server-tisa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-grpc-server-tisa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moemoe89","download_url":"https://codeload.github.com/moemoe89/go-grpc-server-tisa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fgo-grpc-server-tisa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266151526,"owners_count":23884436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codecov","docker","go","golang","grpc","postgresql","travis-ci"],"created_at":"2024-11-19T13:20:12.639Z","updated_at":"2026-04-12T00:48:01.793Z","avatar_url":"https://github.com/moemoe89.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/moemoe89/go-grpc-server-tisa.svg?branch=master)](https://travis-ci.org/moemoe89/go-grpc-server-tisa)\n[![codecov](https://codecov.io/gh/moemoe89/go-grpc-server-tisa/branch/master/graph/badge.svg)](https://codecov.io/gh/moemoe89/go-grpc-server-tisa)\n[![Go Report Card](https://goreportcard.com/badge/github.com/moemoe89/go-grpc-server-tisa)](https://goreportcard.com/report/github.com/moemoe89/go-grpc-server-tisa)\n\n# GO-GRPC-SERVER-TISA #\n\nPracticing GRPC Server using Golang as Programming Language, PostgreSQL as Database\n\n## Directory structure\nYour project directory structure should look like this\n```\n  + your_gopath/\n  |\n  +--+ src/github.com/moemoe89\n  |  |\n  |  +--+ go-grpc-server-tisa/\n  |     |\n  |     +--+ main.go\n  |        + api/\n  |        + routers/\n  |        + ... any other source code\n  |\n  +--+ bin/\n  |  |\n  |  +-- ... executable file\n  |\n  +--+ pkg/\n     |\n     +-- ... all dependency_library required\n\n```\n\n## Setup and Build\n\n* Setup Golang \u003chttps://golang.org/\u003e\n* Setup PostgreSQL \u003chttps://www.postgresql.org/\u003e\n* Setup BloomRPC \u003chttps://github.com/uw-labs/bloomrpc/\u003e\n* Under `$GOPATH`, do the following command :\n```\n$ mkdir -p src/github.com/moemoe89\n$ cd src/github.com/moemoe89\n$ git clone \u003curl\u003e\n$ mv \u003ccloned directory\u003e go-grpc-server-tisa\n```\n\n## Running Migration\n* Copy `config-sample.json` to `config.json` and changes the value based on your configurations.\n* Create PostgreSQL database for example named `simple_api` and do migration with `Goose` \u003chttps://bitbucket.org/liamstask/goose/\u003e\n* Change database configuration on dbconf.yml like `dialect` and `dsn` for each environtment\n* Do the following command\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ goose -env=development up\n```\n\n## Running Application with Makefile\nMake config file for local :\n```\n$ cp config-sample.json config-local.json\n```\nBuild\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ make build\n```\nRun\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ make run\n```\nStop\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ make stop\n```\nMake config file for docker :\n```\n$ cp config-sample.json config-docker.json\n```\nDocker Build\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ make docker-build\n```\nDocker Up\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ make docker-up\n```\nDocker Down\n```\n$ cd $GOPATH/src/github.com/moemoe89/go-grpc-server-tisa\n$ make docker-down\n```\n\n## How to Run with Docker\nMake config file for docker :\n```\n$ cp config-sample.json config.json\n```\nBuild\n```\n$ docker-compose build\n```\nRun\n```\n$ docker-compose up\n```\nStop\n```\n$ docker-compose down\n```\n\n## How to Test gRPC\n* Open BloomRPC\n* Import proto file\n* Fill server address \u0026 port\n* Do testing\n\n## How to Run Unit Test\nRun\n```\n$ go test ./...\n```\nRun with cover\n```\n$ go test ./... -cover\n```\nRun with HTML output\n```\n$ go test ./... -coverprofile=c.out \u0026\u0026 go tool cover -html=c.out\n```\n\n## Reference\n\nThanks to this medium [link](https://toolbox.kurio.co.id/implementing-grpc-service-in-golang-afb9e05c0064) for sharing the great article\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fgo-grpc-server-tisa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoemoe89%2Fgo-grpc-server-tisa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fgo-grpc-server-tisa/lists"}