source ../.env.dev # set environment variables
Service | Command | Description |
---|---|---|
Telegram | go run main.go service telegram | Telegram bot |
Discord | go run main.go service discord | Discord bot |
GRPC | go run main.go service grpc | GRPC server |
Chain Crawler | go run main.go service chain-crawler | Crawler to update chains |
Contract Crawler | go run main.go service contract-crawler | Crawler to update DAODAO contracts |
Validator Crawler | go run main.go service validator-crawler | Crawler to update validators |
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
Edit ent/schema/*.go and run:
# generate models
go generate ./ent
# generate migrations
go run main.go create-migrations
# or combined
go generate ./ent && go run main.go create-migrations
migrate -source file://go/database/migrations -database "postgres://postgres:postgres@localhost:5432/cosmos-notifier-db?sslmode=disable&TimeZone=Europe/Zurich" up
go run -mod=mod ariga.io/entviz ./ent/schema/
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest