2026-04-15 17:37:24 +02:00
2026-04-11 21:34:01 +02:00
2026-04-15 17:37:24 +02:00
2026-04-15 17:37:24 +02:00
2026-04-11 23:39:55 +02:00
2026-03-28 14:41:01 +01:00
2026-04-11 23:39:55 +02:00
2026-03-28 14:41:01 +01:00
2026-04-15 17:37:24 +02:00
2026-04-15 17:37:24 +02:00
2026-03-28 13:39:05 +00:00
2026-04-15 17:37:24 +02:00

Rhythm Backend (Go)

Lean Go API backend structure for ISeeU Tracker.

General Folder Structure

cmd/
  api/
    main.go                 # application entrypoint

internal/
  config/                   # env and app config
  db/                       # postgres/sqlx connection + tx helpers
  http/                     # router, middleware, handlers
  auth/                     # JWT, password hashing, auth middleware
  service/                  # business logic
  repository/               # SQLx queries (no ORM)
  model/                    # domain models + request/response DTOs

migrations/                 # Goose SQL migrations
scripts/                    # optional local/dev scripts

Notes

  • Keep handlers thin, business logic in service, SQL in repository.
  • Use sqlx for explicit SQL and scan helpers.
  • Use goose for schema versioning (up, down, status).
  • Prefer small packages and avoid over-abstraction early.
Description
No description provided
Readme GPL-3.0 8.5 MiB
Languages
Rust 98.4%
Dockerfile 1.3%
Makefile 0.3%