Skip to content

MahdiJDS/restaurant-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍽️ React Restaurant App

A modern and interactive restaurant web application built with React.js and Tailwind CSS.
This app provides a smooth user experience with advanced UI features such as dark mode, dynamic product management, cart system, and theme customization.


✨ Features

  • 📂 JSON-based Data – Fetch and render restaurant menu from a JSON file.
  • 🔎 Search Bar – Search dishes in real-time.
  • 🔃 Code Splitting and Lazy Loading for Performance.
  • 🖱️ Click-to-View Details – Click any product to see its full details page.
  • 🛒 Cart & Checkout – Add products to the cart and simulate payments.
  • 🌙 Dark Mode Toggle – Seamlessly switch between light and dark themes.
  • 🎨 Custom Navbar Theme – Change the look and feel of the navigation bar.
  • Add New Product – Admin-like feature to create and display new items.
  • Smooth Animations – Modern transitions powered by Tailwind.
  • 📱 Responsive Design – Optimized for desktop, tablet, and mobile.

🛠️ Tech Stack

  • React.js – Component-based frontend library
  • Code Splitting and Lazy Loading for Performance.
  • Tailwind CSS – Utility-first CSS framework for styling
  • JavaScript (ES6+) – Core functionality
  • JSON – Data storage and fetching
  • React Router – Page navigation

📂 Project Structure


restaurant-app/
│── public/
│── data/
│ ├── data.json # Menu data (products, prices, descriptions)
│── src/
│ ├── components/ # Reusable UI components
│ ├── Hooks/ # UseFeatch , UseTheme
│ ├── pages/ # Home, Product Details, Cart, Checkout
│ ├── context/ # Cart & Theme context providers
│ ├── App.jsx # Main app
│ ├── index.jsx # React entry point
│── tailwind.config.js # Tailwind setup
│── package.json # Dependencies


🚀 How to Run

# Clone repository
git clone https://github.com/MahdiJDS/restaurant-app.git

# Navigate to project folder
cd restaurant-app

# Install Dependencies
npm install

# Run Development Server
npm run dev

📸 Preview

🛒 Cart & Checkout 🌗 Light Mode & Home 🔎 Add & Details
Checkout Home Details

🧑‍💻 Developer

🔥 Made with ❤️, MahdiJDS✨


About

A modern and interactive restaurant web application built with React.js and Tailwind CSS."

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors