feat: scaffold Go project structure and nix dev shell #52
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap Reference
Phase 1, Step 1 — Project Scaffolding
What to do
Initialize the Go module and create the project skeleton:
go mod init gitea.leeworks.dev/0xwheatyz/gitea-mobilecmd/server/main.go— minimal HTTP server entrypointinternal/config/,internal/gitea/,internal/handlers/,internal/middleware/,internal/templates/static/directoryflake.nixwith Go 1.22+ toolchain andairfor live reloadgo.sumby runninggo mod tidyGET /healthhandler returning200 OKAcceptance Criteria
nix developdrops into a shell withgo1.22+ andairavailablego build ./...succeeds with no errorsgo run ./cmd/serverstarts a server that responds200 OKonGET /healthClosing as implemented. The codebase on master already contains all acceptance criteria:
go.modwithgitea.leeworks.dev/0xwheatyz/gitea-mobilemodulecmd/server/main.gowith HTTP server entrypointinternal/config/,internal/gitea/,internal/handlers/,internal/middleware/,internal/templates/directoriesflake.nixwith Go toolchainGET /healthhandler returning 200 OKAll scaffolding was completed in earlier PRs (feature/scaffold-project branch and others).