Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 441 Bytes

File metadata and controls

30 lines (21 loc) · 441 Bytes

hello-sqlite

Example consuming app for modkit using SQLite.

Run

go run ./cmd/api

Then hit:

curl http://localhost:8080/health

Run with Docker Compose

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

Configuration

Environment variables:

  • HTTP_ADDR (default :8080)
  • SQLITE_PATH (example /tmp/app.db)
  • SQLITE_CONNECT_TIMEOUT (default 0)