Skip to content

08Ordering web app

Tiệm Trà Tốt

A mobile-first ordering web app and live owner dashboard for a bubble tea, coffee and snack shop, built for cash orders without an account.

Tiệm Trà Tốt, screenshot

Context

Tiệm Trà Tốt is a bubble tea, coffee and snack shop that needed to take customer orders online without payment integration. Orders are paid in cash on delivery, pickup or dine-in, so the goal is only to know who ordered what. I built the mobile-first web app and the owner dashboard alone in 2026 as freelance client work, following a Figma design system.

What I built

  • A mobile-first menu and shop story in Vietnamese, English and Chinese, in React 19, TypeScript, Vite and Tailwind CSS v4.
  • A bottom sheet on each product for size, L or the bucket size "Xô", and toppings, plus a slide-in cart.
  • Checkout without an account, a short order code and a status page the customer can reopen.
  • A live dashboard at /dashboard for orders, menu prices, sizes, availability, photos, promotions and shop details, with Telegram bot alerts.
  • Docker Compose and nginx on an Oracle Cloud VPS, where GitHub Actions runs Django tests and the frontend build on every push to main before deploying over SSH with a restricted key.

Highlights

Ordering in three taps

Tapping a product opens one bottom sheet for size and toppings, and the order item stores a snapshot of the chosen size and options so a later price change does not alter past orders. Every status change through confirmed, preparing, delivering, completed or cancelled goes through one method on the order model that stamps the time and writes an event log entry, keeping the history complete.

The menu and the size and topping bottom sheet

Real-time orders without extra infrastructure

The dashboard holds a Server-Sent Events connection with sound alerts to an async Django 5 view under ASGI and uvicorn, so a connection holds no thread. It checks PostgreSQL for orders changed since the last event via an indexed updated_at, pushes them down, pings proxies and closes after a fixed time. The browser's EventSource reconnects with Last-Event-ID, so no event is lost. No Redis, no Django Channels.

The dashboard with live orders
Local demo with invented orders.

Photos that never cross the server

The browser asks the Django REST Framework API for a presigned PUT URL valid for 5 minutes and uploads straight to a private AWS S3 bucket. The API returns presigned GET URLs valid for 1 hour for display, and the database stores only the plain object URL. With no S3 credentials configured, the dashboard shows a notice and accepts a pasted image URL.

The menu editor with image upload

Result

The shop takes orders online, and the owner sees every order on one screen, in real time, and on Telegram.

Next project

Alex's BrainAlex's Brain, screenshot