A premium, high-fidelity, and feature-rich Single Page Application (SPA) designed for Cafe Luxe. Built from the ground up with elegant dark-gold aesthetics, fluid animations, and a fully interactive user interface alongside a comprehensive real-time Admin Management Dashboard.
This application is split into two primary experiences: a Premium Customer Experience and an Advanced Manager Dashboard.
- 🪐 Immersive Hero Experience: Features dynamic floating background particle systems, custom typography, an auto-typing subtitle animation (
Luxury,Elegance,Perfection,Tradition,Excellence), and smooth scroll indicators. - 📋 Dynamic Menu & Real-Time Filter:
- Responsive categorization categories (Pizza, Burgers, Drinks, Desserts, Coffee, Seafood).
- Zero-latency real-time text search across item names, descriptions, and category metadata.
- Visual ratings display and seamless add-to-cart controls.
- 🛒 Interactive Shopping Cart:
- Itemized breakdown with dynamic quantity modification and immediate subtotal calculations.
- Tax calculation and real-time coupon code applications (percentage & flat rate discounts).
- Instant cart badge indicator updates.
- 📅 Table Booking & Reservation Engine:
- Modern interactive form capturing full name, phone number, guest count, and date/time.
- Date limits checking (automatically prevents choosing past dates).
- Table Preference Options: Window Side, Garden View, Private Booth, Rooftop, or Bar Counter.
- Success summary modal with dynamic confirmation code generation.
- ✨ Aesthetic Micro-Interactions:
- Navigational scroll-triggered headers that transition from transparent to glassmorphic.
- Scroll-Reveal entry animations for featured delicacies and testimonial grids.
- Dynamic statistical counters (
Happy Guests,Signature Dishes,Years of Excellence) counting up smoothly upon viewport entry via intersection observers.
- 🔐 Local Profile Authentication: Instant sign-in and registration modals that dynamically support roles and persist state via
localStorage.
- 📊 Live Analytics Overview: Visualized statistics utilizing
Chart.js, showcasing:- KPI Indicator Cards: Total Orders count, Total Revenue sum, Unique Customer metrics, and Average Order Value.
- Monthly Revenue Bar Chart: Real-time graphical income tracking.
- Popular Categories Doughnut Chart: Proportional breakdown of menu items by category.
- Daily Orders Line Chart: Order frequency trends over the week.
- Customer Visits Line Chart: Visitor tracking data.
- 🍔 Menu CRUD Operations: Comprehensive controller module enabling managers to:
- Add new items (custom validation, category selectors, automated ratings, and fallback mock image generations).
- Edit existing products seamlessly via auto-populated modals.
- Delete outdated dishes instantly.
- 🧾 Orders Management Control: Real-time status update table featuring custom status selectors (Pending ➡️ Preparing ➡️ Cooking ➡️ Delivered ➡️ Cancelled) with immediate layout reflections.
- 📖 Reservations Log: Comprehensive database view listing guest details, specific time intervals, custom special requests, and status indicators.
- ⭐ Customer Reviews Moderation: Visual feedback log showcasing user comments and star ratings.
- HTML5 - Semantic structure optimizing accessible navigation.
- Vanilla CSS3 - Custom variables design system, glassmorphic card overlays, responsive flex/grid viewports, keyframe particle animations, and dark-gold color themes.
- Modern JS (ES6+) - Asynchronous API calls, localStorage bindings, scroll observer APIs, and state manipulation.
- Chart.js (v4.4.0) - High-performance HTML5 canvas charting.
- FontAwesome (v6.5.0) - Premium vector iconography.
- Google Fonts - Sleek pairings of Playfair Display (for luxury headings) and Poppins (for modern body text).
Cafe-Management-System/
├── .github/ # Workflows & GitHub specific actions
├── assets/ # Application graphic assets and screenshots
│ ├── home.png
│ └── cart.png
├── index.html # Main page layout containing pages, modals & templates
├── style.css # Premium styling system, styling tokens & variables
├── script.js # Core SPA routing, state management, API client & animations
└── README.md # Project documentation
- A modern web browser (Google Chrome, Firefox, Safari, or Microsoft Edge).
- Optional: VS Code along with the Live Server extension for real-time development reloading.
- Clone the Repository:
git clone https://github.com/chathunga2007/CafeLuex-Management-System-Front-End.git
- Navigate & Open:
- Open the folder in your file explorer.
- Double-click
index.htmlto run in your default browser. - For Developer Mode: Open the folder in VS Code, right-click
index.html, and select Open with Live Server.
The frontend utilizes a robust centralized API helper to communicate with a local backend server:
- API Base URL:
http://localhost:8080/api - Header Authorization: Attaches
X-User-IdandX-User-Roleheaders automatically upon successful sign-in. - Fallback Mode: In the absence of a running backend API, the application relies on full-featured mock data syncing automatically to local storage (
localStorage) so that all features (checkout, admin management, reservations, and analytics) function perfectly out of the box without any external dependencies!
To make evaluating the features fast and efficient, use these preconfigured coupon codes and account roles:
Apply these inside the Cart page to test checkout discounts:
WELCOME10— 10% discount on order subtotalLUXE20— 20% discount on order subtotalCAFE15— 15% discount on order subtotalFLAT5— Flat $5.00 discount on order subtotal
- Click Sign In on the navigation bar.
- Create an account or login using an account configured with the Admin role.
- Once authorized, the Sign In button automatically transforms into a gold Dashboard control panel button, redirecting you into the advanced metrics system.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.
Crafted with ❤️ by Chathunga Bimsara for Cafe Enthusiasts.

