Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

gambitier/gocomm

Repository files navigation

gocomm

Running the app

Hot Reload

Air is yet another live-reloading command line utility for developing Go applications.

go install github.com/air-verse/air@latest

once air utility is installed, simply run

air

Guides

Usage

Config

  • Copy sample.config.json & create config.json file in the same directory
  • Update config values in config.json

gRPC

protoc --go_out=. --go-grpc_out=. **/*.proto

Starting grpcui tool

Note: For this you need to set env variable environment to development

grpcui -plaintext localhost:3001

Wire

Installation

go install github.com/google/wire/cmd/wire@latest

Use following command to create wire generated files across all the directories in the project.

wire ./...

Swagger

Install swag by using:

go install github.com/swaggo/swag/cmd/swag@latest

generate swagger docs

go generate ./...

sqlc

sqlc is distributed as a single binary with zero dependencies.

installation

macOS

brew install sqlc

Ubuntu

sudo snap install sqlc

go install (Go >= 1.17)

go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest

usage

generate sqlc generated files

sqlc generate ./...

About

A proof-of-concept project, archived after successfully validating initial ideas and concepts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors