Skip to content

About

☕ Cafe Luxe front-end management system built with HTML5, Vanilla CSS3, and ES6+ JS. Includes dynamic SPA routing, active client checkout with promo coupon verification, table booking, and a full CRUD Admin Dashboard backed by Chart.js analytics and localStorage.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

101 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☕ Cafe Luxe — Management System

JavaScript CSS3 Chart.js Responsive LocalStorage

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.


📸 visual Preview

Cafe Luxe Home Screen Cafe Luxe Cart Screen

✨ Key Features

This application is split into two primary experiences: a Premium Customer Experience and an Advanced Manager Dashboard.

🌟 1. Customer Dining Experience

  • 🪐 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.

🛡️ 2. Manager & Admin Dashboard

  • 📊 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.

🛠️ Architecture & Tech Stack

Frontend Core

  • 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.

Graphics & Dynamic Visualization

  • 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).

📂 Project Directory Structure

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

🚀 Getting Started & Installation

Prerequisites

  • 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.

Setup Instructions

  1. Clone the Repository:
    git clone https://github.com/chathunga2007/CafeLuex-Management-System-Front-End.git
  2. Navigate & Open:
    • Open the folder in your file explorer.
    • Double-click index.html to run in your default browser.
    • For Developer Mode: Open the folder in VS Code, right-click index.html, and select Open with Live Server.

🔌 API Backend Integration

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-Id and X-User-Role headers 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!

🎟️ Tester Cheat Sheet (Promo Codes & Admin Profile)

To make evaluating the features fast and efficient, use these preconfigured coupon codes and account roles:

🏷️ Available Coupons

Apply these inside the Cart page to test checkout discounts:

  • WELCOME10 — 10% discount on order subtotal
  • LUXE20 — 20% discount on order subtotal
  • CAFE15 — 15% discount on order subtotal
  • FLAT5 — Flat $5.00 discount on order subtotal

🔑 Accessing the Admin Dashboard

  1. Click Sign In on the navigation bar.
  2. Create an account or login using an account configured with the Admin role.
  3. Once authorized, the Sign In button automatically transforms into a gold Dashboard control panel button, redirecting you into the advanced metrics system.

🤝 Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your Changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

📝 License

Distributed under the MIT License. See LICENSE for more information.


Crafted with ❤️ by Chathunga Bimsara for Cafe Enthusiasts.

About

☕ Cafe Luxe front-end management system built with HTML5, Vanilla CSS3, and ES6+ JS. Includes dynamic SPA routing, active client checkout with promo coupon verification, table booking, and a full CRUD Admin Dashboard backed by Chart.js analytics and localStorage.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages