Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.03 KB

Twitch EventSub Handler

This repository aims to represent how I will be handling EventSub notifications from Twitch

Go Report Card

Setup Dev Environment

  • Rename sample.env to .env and edit values as needed
  • Run docker containers with docker compose up
  • Run the package with go run twitch_receiver/cmd/main.go
EXPORT GOOSE_DRIVER="postgres"
EXPORT GOOSE_DBSTRING="postgres://test:password@localhost:5432/test"
EXPORT GOOSE_MIGRATION_DIR="shared/database/migrations/"
go install github.com/pressly/goose/v3/cmd/goose@latest
goose up
$env:"GOOSE_DRIVER" = "postgres"
$env:"GOOSE_DBSTRING" = "postgres://test:password@localhost:5432/test"
$env:"GOOSE_MIGRATION_DIR" = "shared/database/migrations/"
go install github.com/pressly/goose/v3/cmd/goose@latest
goose up