This is the frontend for a restaurant management system.
It is built using Next.js, React, and TailwindCSS.
- ๐ค Login and register
- ๐งพ View and manage orders (tickets)
- ๐ฝ๏ธ See and edit meals and products
- ๐ช Manage tables individually
- ๐จโ๐ณ Add new employees (admin only)
- ๐ Route protection (admin and employee)
- ๐ Admin and employee dashboards
- ๐ฆ Product CRUD (Create, Read, Update, Delete)
- ๐งญ Sidebar for admin and another for employees
- Next.js (App Router)
- React
- TailwindCSS
- JavaScript
- Context API (for state and auth management)
- CSS Modules / Global styles
src/app/
โ Pages and routes (e.g./login
,/dashboard
,/mesas/[id]
)src/components/
โ Reusable UI componentssrc/components/ui/
โ Admin and employee sidebarspage.jsx
โ Main pageslayout.js
โ Global layout and auth wrapperglobals.css
โ Tailwind base styles
npm install npm run dev
๐ Route Protection
Routes are protected depending on user role:
Admins can access everything (including employee management)
Employees can access only their dashboard, tables, and orders
๐จ UI Screens
Login / Register pages
Dashboard
Table view
Orders view
Products: Add / Edit / List
Admin-only employee management
๐ซ Author
Made by a systems engineering student for restaurant use. Easily connect this frontend with a Spring Boot backend API.