Public GitHub · TypeScript · React · Fastify · MongoDB
Royal Wow Meal & Bar
Restaurant and bar platform: menus, checkout, reservations, events, coupons, and an admin dashboard with analytics.
- Interface
- React 19 · TypeScript · Vite · Tailwind CSS 4 · TanStack Query · Zustand · React Router 7 · Recharts
- API
- Fastify 5 · TypeScript · JWT · bcrypt · Swagger
- Data
- MongoDB · Mongoose
Overview
Royal Wow Meal & Bar is a full-stack platform for a restaurant with a bar. The public site has separate restaurant and bar menus, checkout, table reservations, and events. The admin dashboard covers orders, the menu, reservations, events, coupons, customer messages, and sales analytics. I built the TypeScript API on Fastify and MongoDB and the React admin. The repository is public.
Problem
A restaurant and a bar under one name need two public faces, one for dining and one for drinks and events, run from a single admin. Orders, reservations, the menu, events, coupons, and reporting have to share one data model, behind an HTTP API the admin UI can rely on.
What we built
We owned the API, the data model, and the admin workflows.
- Designed the MongoDB models: menu items, categories, orders, reservations, events, coupons, contact messages, and admin users.
- Built the Fastify API in TypeScript, with admin login on JWT and bcrypt, image uploads for menu items and events, and menu import and export as CSV or Excel.
- Documented every endpoint with Swagger, served at /api/docs.
- Built the React admin: sales and order charts, order tracking, and create, edit, and delete screens for the menu, categories, events, and coupons.
- Wrote a seed script that loads sample menus, events, coupons, and orders, so a fresh clone runs in minutes.
- Added a read-only demo role for the live site: it can open every admin screen, and the API answers any change from it with 403.
Features
- Restaurant and bar sections with their own menus
- Checkout for restaurant orders
- Table reservations for the bar
- Events listing and management
- Coupons for promotions
- Admin analytics for sales, orders, and reservations
- Message center for contact-form inquiries
- Image uploads for menu items and events
- Menu import and export as CSV or Excel
- Swagger documentation for every endpoint
Problems we solved
One data model for several workflows
Orders, reservations, events, and coupons had to share a model the admin UI could trust. We kept each workflow in its own Fastify route module and Mongoose model, with the API contract in front of all of them.
Bulk menu changes without retyping
A restaurant menu changes in batches. The API exports the menu as CSV or Excel and imports an edited file back, so the owner can update prices in a spreadsheet instead of item by item.
The admin UI needed a written API
Swagger documents every route, including the multipart uploads, so the React admin and the services stay aligned and a reviewer can try each endpoint from the browser.
Result
- A live demo at royalwow.websuprime.com, with a read-only admin login.
- A public GitHub repository you can read, run, and judge.
- Admin workflows for orders, reservations, menus, events, coupons, messages, and reporting.
- Admin login, image uploads, spreadsheet import, and Swagger-documented APIs in one TypeScript codebase.
Demo logins
The demo is open. Sign in at royalwow.websuprime.com/admin with any of these.
| Who | Username | Password |
|---|---|---|
| Admin (read-only) | demo@royalwow.com | royalwow-demo |
More work
Other systems you can check.
Live demo
DineFlow POS
A multi-tenant restaurant POS: floor plan, kitchen order tickets, billing, inventory, and staff roles, running as a public demo.
React · Node.js · Socket.io · MongoDB
Read the case study →