Create the cmd/ layout and move the web app #158

Open
opened 2026-10-07 11:43:47 +00:00 by aniram · 0 comments
Owner

Create cmd/web/main.go and move the SSR server (templates, repositories, handlers, routes, ListenAndServe) there.
Delete all sync flags and the if/else-if chain from it. After this ticket, the web binary should not import internal/syncer.

The web binary opens the DB itself.
Both binaries live in the same Go module, with no separate repo.
go build ./cmd/...builds both.

Acceptance criteria:

  • go build ./cmd/web works and the site behaves exactly as before.
  • No flag usage remains in the web binary.
Create cmd/web/main.go and move the SSR server (templates, repositories, handlers, routes, ListenAndServe) there. Delete all sync flags and the if/else-if chain from it. After this ticket, the web binary should not import internal/syncer. The web binary opens the DB itself. Both binaries live in the same Go module, with no separate repo. `go build ./cmd/...`builds both. Acceptance criteria: - go build ./cmd/web works and the site behaves exactly as before. - No flag usage remains in the web binary.
aniram added this to the 2027.1 milestone 2026-10-07 11:44:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
overdrives/chambersbr#158
No description provided.