The problem
A small restaurant needs to take orders, charge customers and see its numbers without paying for a subscription or needing internet to sell.
Stack
Astro SSRReactPrismaPostgreSQLGemini
What I built
- Astro SSR server with React islands and PostgreSQL in Docker, all on the shop's own PC.
- Phones and tablets connect as a PWA through a Cloudflare tunnel.
- Tables, delivery, cash register, inventory, expenses and charted reports.
- Admin, cashier and waiter roles with JWT auth, plus a Gemini AI assistant.
- ESC/POS thermal printing and invoice OCR with Gemini.
- Inventory ledger (kardex) with atomic transactions.
What I learned
- Designing local-first: the business keeps selling even when the internet goes down.
- Modeling a domain with real money in Prisma, where a rounding error matters.




