.
├── cmd
│ └── server
├── docs (swagger api docs)
├── internal
│ └── handler (http handlers)
└── pkg
├── chi (chi router)
├── ent (ent orm, but not used)
└── youtube (youtube api client)
go build ./cmd/server
or cross compile for linux(amd64)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./cmd/server
put client files in ./dist
directory, you can change the directory in ./internal/handler/static.go
put youtube service secret file as ./client_secret.json
, you can change the file path in ./pkg/youtube/client.go