Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

hello-postgres

Example consuming app for modkit using Postgres.

Run

go run ./cmd/api

Then hit:

curl http://localhost:8080/api/v1/health

Run with Docker Compose

docker compose up -d --build
curl http://localhost:8080/api/v1/health
docker compose down -v

Configuration

Environment variables:

  • HTTP_ADDR (default :8080)
  • POSTGRES_DSN (example postgres://postgres:password@localhost:5432/app?sslmode=disable)