Scaffold: serve, config, embed, base layout #3
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
posta/chat#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Parent
#2
What to build
The bare bones of
chat-posta— a Go cobra binary withserveandversionsubcommands.servestarts an HTTP server that returns a "chat.posta.no" welcome page using the lifted design tokens fromposta/web'sstatic/style.css(palette, fonts, base typography, dark-mode variants). SQLite is opened on startup with a migration framework in place; no tables created yet. Config layers TOML → env → flags with the same precedence as posta-server (flag > env > config > default). HTML, CSS, and fonts embedded viaembed.FSfor a self-contained binary.Acceptance criteria
chat-posta versionprints the build versionchat-posta serve --listen :8080 --db /tmp/test.dbstarts an HTTP server/returns 200 HTML with the cream/forest palette CSS variablesCHAT_POSTA_*), or TOMLCGO_ENABLED=0@font-facerules embeddedembed.FSwith sensibleCache-ControlBlocked by
None - can start immediately.