Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 861 Bytes

CONTRIBUTING.md

File metadata and controls

52 lines (35 loc) · 861 Bytes

DataPimp Developer's Documentation

Local run

task run

or

go run -race internal/main/main.go

Generate protobuf code

Make sure you have installed necessary tools:

go install github.com/bufbuild/buf/cmd/buf@latest
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install github.com/bufbuild/connect-go/cmd/protoc-gen-connect-go@latest

Then run:

task gen

or

buf lint && buf generate

Create a new migration scripts

Make sure you have installed necessary tools:

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

Create and edit new migration scripts:

migrate create -dir migration/migrations -ext sql description

Edit the new scripts.