Track five things a day for seventy-five days
The workout, the protein, the calories, the water, and three lines of gratitude. One page per day, a card of seventy-five tiles that fill by how many of the five landed, and a missed day left as a gap rather than a reset. Single Go binary with no dependencies. The log is one JSON file on a mounted volume, written atomically and never silently replaced when it fails to parse, since it is the one thing here that cannot be recreated. Auth is Traefik basic auth at the ingress; the app has no login of its own, so every POST checks Sec-Fetch-Site to stop another origin posting with those credentials. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
7
.env.example
Normal file
7
.env.example
Normal file
@@ -0,0 +1,7 @@
|
||||
# Where the log is written. In the cluster this is the mounted volume.
|
||||
DATA_PATH=data/tracker.json
|
||||
|
||||
# Public origin, and the timezone the day rolls over in.
|
||||
BASE_URL=https://fit.scottyah.com
|
||||
TZ_NAME=America/Los_Angeles
|
||||
ADDR=:8080
|
||||
Reference in New Issue
Block a user