How iamdushu/harbor-health-server works
Project type and purpose
• This is a backend API server for the Harbor Health platform, implemented in Go and exposed over HTTP via the Gin framework. It handles authentication, business logic, persistence (PostgreSQL via SQLC), and integrations with external services (Twilio, Brevo, Stream).
File structure
• cmd/harbor → entry point (main.go)
• api/ → HTTP handlers, routes, middleware
• internal/db/ → SQL migrations and SQLC‑generated code (data access layer)
• internal/token/ → JWT/PASETO token creation and validation (auth layer)
• internal/util/ → configuration, email/OTP/phone utilities, third‑party wrappers
• Dockerfile, Makefile, .env.example → deployment and local environment setup
README insights
• Tech stack: Go, Gin, PostgreSQL, SQLC, Viper, Docker, golang‑migrate
• Auth: PASETO access/refresh token system
• Integrations: Twilio (SMS), Brevo (email), Stream (real‑time video)