The Problem
Independent coffee shop owners and busy baristas regularly struggle with manual counter queues during peak hours, paper-based order slips getting misplaced between cashier and barista, and fragmented sales books that require hours of evening calculation. Customers often experience long wait times without visibility into their order status.
In a collaborative project team of five (Project Manager, UI/UX Designer, 2 Frontend Developers, and Backend Engineer), our mission was to engineer Hasta Coffeeshop Platform: an end-to-end digital ordering system connecting coffee lovers with shop management.
My Role & Constraints
As a Frontend Developer working alongside co-frontend engineer Awaludin, UI/UX designer Sagita, backend engineer Hidayatullah, and project manager Tries, I focused on:
- Converting UI/UX mockups into responsive React components with Bootstrap.
- Managing shopping cart state and product customization (cup size, sweetness level, temperature, and toppings).
- Integrating frontend routes with Express.js REST endpoints documented via Swagger.
- Building admin order pipeline queues and monthly revenue analytics views.
Key constraints:
- Strict 5-week delivery timeline: coordinating design handoff, Swagger schema contracts, and client-side testing within sprint boundaries.
- Mobile-first accessibility for walk-in and remote patrons: checkout and order monitoring had to feel natural on narrow mobile viewports through bottom app-shell navigation.
- Synchronized order queue states: baristas needed distinct order stages (New Order, Process/Checked, and Pickup/Done) without manual phone calls to cashier staff.
Key Decisions
1. Mobile-friendly order customization with centralized cart state
Coffee orders involve multiple modifier variables: temperature (Cold / Hot), cup size (Regular / Large), sweetness (Normal / Less Sweet), and optional toppings. Rather than handling this logic across scattered inputs, we unified product option selection into clean modifier tags that compute exact prices before saving to browser cart state.
- Trade-off: Managing option combinations locally requires validation on item selection, but prevents incomplete orders from reaching the checkout payload.
Mapping drink modifiers into predictable cart state
Every combination validates temperature, cup size surcharge, and sweetness before checkout.
1x Hasta Coffe · Large / Cold / Normal
18.000 (Base) + 3.000 (Large)
Validated note sent directly to Barista Queue
2. Multi-stage order queue for kitchen and baristas
Orders move through a clear operational lifecycle: New Order -> Checked / Process -> Done Order / Pickup. In the admin dashboard, baristas and supervisors view dedicated tabs with order IDs, customer contacts, item notes, and one-click status transitions.
Structuring the order dashboard around kitchen status rather than a plain raw list helped avoid missed drinks during rush hours.
3. API-first collaboration using Swagger contracts
Working with a dedicated backend engineer (Hidayatullah) using Express.js, Knex, and PostgreSQL, we relied on Swagger UI as the single source of truth for endpoints. This allowed frontend development to mock and consume authentication routes (JWT sign-in, sign-up, password reset, and email confirmation) and product CRUD endpoints without guessing response payloads.
End-to-end flow from customer checkout to barista pickup & reports
Swagger contracts connected React frontend developers smoothly with Express + PostgreSQL.
Customer Mobile Order
Sign-in/Auth, menu customization, and cart checkout via 4 bottom mobile tabs.
Swagger API Bridge
Shared OpenAPI spec syncing Express.js, Knex queries, and PostgreSQL order tables.
Admin Barista Queue
Ticket transitions: New Order -> Check/Process -> Done/Pickup + Monthly Report.
The Build
The client application was built using React.js, JavaScript, and Bootstrap grid utilities, interfacing with backend Express APIs and database models:
// Cart item modifier and pricing calculation
export function calculateItemSubtotal(item) {
const basePrice = Number(item.price) || 0;
const sizeSurcharge = item.cupSize === "Large" ? 3000 : 0;
const unitPrice = basePrice + sizeSurcharge;
const quantity = Math.max(1, Number(item.quantity) || 1);
return {
unitPrice,
quantity,
totalPrice: unitPrice * quantity,
};
}
Outcome
- Successfully delivered the full-stack coffeeshop web platform and published the engineering walkthrough on Medium (read full case study).
- Shipped responsive mobile experience with bottom bar navigation (Home, Menu, Pesanan, Akun).
- Built functional admin management tools: product creation/edit with image uploads, order transition workflow, and monthly sales aggregation.
Reflection
Building Hasta Coffeeshop in 2023 was a pivotal team engineering experience: it proved how valuable clear API contracts (Swagger) and shared UI conventions are when collaborating with project managers, designers, and fellow engineers under tight timelines.



