Full-stack app I built to practise French. A searchable phrase dictionary with browser speech pronunciation, a writing space with word counts and prompts, and a daily dashboard that tracks study streaks. Multi-user with sign-in, so every query is scoped to the signed-in account.
Sign-in required — it holds real study data.
It started on local SQLite because nothing needed a server. Going multi-user meant hosted Postgres, so I migrated the data with a one-time script and kept the old file as a backup.
The end-to-end API tests run on a separate database branch that is emptied each run, with a guard that refuses to start if its connection string matches the real one. Real Postgres in tests means what passes is what ships.
The API runs in UTC, so a streak computed server-side would roll over at the wrong hour. The client sends its own local day instead, and the streak follows the person rather than the server.
Pages were downloading every phrase and writing just to count them. Word counts became a generated column and the totals moved behind a stats endpoint.