Skip to content

MinutelyAI/minutely-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minutely API

Go backend for Minutely authentication and health-check endpoints.

Requirements

  • Go 1.26.1 as declared in go.mod
  • A Supabase project

Setup

  1. Clone the repository and enter it:
git clone <repo-url>
cd minutely-api
  1. Create a .env file in the project root:
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-key

The app loads .env on startup and exits if either variable is missing.

Install Dependencies

Go will download dependencies automatically the first time you run the app:

go mod download

Run The Project

Start the API server with:

go run ./cmd/api

The server starts on:

http://127.0.0.1:8080

Verify It Is Running

Health check:

curl http://127.0.0.1:8080/api/health

Expected 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"}'

Checks

Dependencies and package compilation were verified with:

go test ./...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages