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