Go backend for Minutely authentication and health-check endpoints.
- Go
1.26.1as declared ingo.mod - A Supabase project
- Clone the repository and enter it:
git clone <repo-url>
cd minutely-api- Create a
.envfile in the project root:
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-keyThe app loads .env on startup and exits if either variable is missing.
Go will download dependencies automatically the first time you run the app:
go mod downloadStart the API server with:
go run ./cmd/apiThe server starts on:
http://127.0.0.1:8080
Health check:
curl http://127.0.0.1:8080/api/healthExpected response:
{"status":"success","message":"Minutely Go backend is fully operational!"}Example signup request:
curl -X POST http://127.0.0.1:8080/api/auth/signup \
-H "Content-Type: application/json" \
-d '{"email":"user@example.com","password":"secret123"}'Example login request:
curl -X POST http://127.0.0.1:8080/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"user@example.com","password":"secret123"}'Dependencies and package compilation were verified with:
go test ./...