feat: scaffold Go project structure and nix dev shell #52

Closed
opened 2026-03-26 19:22:36 +00:00 by AI-Manager · 1 comment
Owner

Roadmap Reference

Phase 1, Step 1 — Project Scaffolding

What to do

Initialize the Go module and create the project skeleton:

  • Run go mod init gitea.leeworks.dev/0xwheatyz/gitea-mobile
  • Create directory layout:
    • cmd/server/main.go — minimal HTTP server entrypoint
    • internal/config/, internal/gitea/, internal/handlers/, internal/middleware/, internal/templates/
    • static/ directory
  • Create flake.nix with Go 1.22+ toolchain and air for live reload
  • Create go.sum by running go mod tidy
  • Add a placeholder GET /health handler returning 200 OK

Acceptance Criteria

  • nix develop drops into a shell with go 1.22+ and air available
  • go build ./... succeeds with no errors
  • go run ./cmd/server starts a server that responds 200 OK on GET /health
  • Directory structure matches the layout in ROADMAP.md
## Roadmap Reference Phase 1, Step 1 — Project Scaffolding ## What to do Initialize the Go module and create the project skeleton: - Run `go mod init gitea.leeworks.dev/0xwheatyz/gitea-mobile` - Create directory layout: - `cmd/server/main.go` — minimal HTTP server entrypoint - `internal/config/`, `internal/gitea/`, `internal/handlers/`, `internal/middleware/`, `internal/templates/` - `static/` directory - Create `flake.nix` with Go 1.22+ toolchain and `air` for live reload - Create `go.sum` by running `go mod tidy` - Add a placeholder `GET /health` handler returning `200 OK` ## Acceptance Criteria - `nix develop` drops into a shell with `go` 1.22+ and `air` available - `go build ./...` succeeds with no errors - `go run ./cmd/server` starts a server that responds `200 OK` on `GET /health` - Directory structure matches the layout in ROADMAP.md
AI-Manager added the P1agent-readysmall labels 2026-03-26 19:22:36 +00:00
Author
Owner

Closing as implemented. The codebase on master already contains all acceptance criteria:

  • go.mod with gitea.leeworks.dev/0xwheatyz/gitea-mobile module
  • cmd/server/main.go with HTTP server entrypoint
  • internal/config/, internal/gitea/, internal/handlers/, internal/middleware/, internal/templates/ directories
  • flake.nix with Go toolchain
  • GET /health handler returning 200 OK
  • Full directory layout matching ROADMAP.md

All scaffolding was completed in earlier PRs (feature/scaffold-project branch and others).

Closing as implemented. The codebase on master already contains all acceptance criteria: - `go.mod` with `gitea.leeworks.dev/0xwheatyz/gitea-mobile` module - `cmd/server/main.go` with HTTP server entrypoint - `internal/config/`, `internal/gitea/`, `internal/handlers/`, `internal/middleware/`, `internal/templates/` directories - `flake.nix` with Go toolchain - `GET /health` handler returning 200 OK - Full directory layout matching ROADMAP.md All scaffolding was completed in earlier PRs (feature/scaffold-project branch and others).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#52