Skip to content

Latest commit

 

History

History
166 lines (103 loc) · 5.29 KB

File metadata and controls

166 lines (103 loc) · 5.29 KB

🍔 Food Ordering Application

A full-stack web application built using Java (JSP, Servlets), JDBC, and MySQL. The project allows users to browse and order food, while admins can manage menu items, categories, and orders.

The goal of this project is to develop a user-friendly online food ordering system that streamlines the process of browsing menus, placing orders, and managing food items. It aims to bridge the gap between restaurants and customers through a digital platform, offering convenience, efficiency, and real-time order management for both users and administrators.


🧰 (images/tech-heading.png)

💻 Technologies Used

  • Backend: Java, JSP, Servlets, JDBC
  • Frontend: HTML, CSS, JavaScript, Bootstrap
  • Database: MySQL

🏗️ Architecture - MVC Pattern

This project follows the MVC (Model-View-Controller) architecture:

  • Model: Java classes representing data entities like User, FoodItem, Order, etc.
  • View: JSP files used for rendering the frontend interface for users and admins.
  • Controller: Servlets handling the business logic and routing requests between the view and model.

👤 User

  • Register and login
  • Browse food items by category
  • Add items to cart
  • Place orders
  • View order history

🔐 Admin

  • Login securely
  • Manage categories and food items (CRUD)
  • View and manage customer orders

✨ Features

  • Login/Signup with session management
  • Role-based access (admin and user dashboards)
  • Dynamic loading of food items and categories
  • Responsive UI with Bootstrap
  • Secure JDBC with Prepared Statements
  • POJO model for data abstraction
  • MVC pattern for separation of concerns

🖼️ Screenshots

🏠 Home Page

Screenshot 2025-04-14 184419

Screenshot 2025-04-14 184436

Screenshot 2025-04-14 184445

  • Company

Screenshot 2025-04-14 184459

  • Contact

Screenshot 2025-04-14 184510

  • Login

Screenshot 2025-04-14 184526

  • Registration

Screenshot 2025-04-14 184546


👤 User Role

Screenshot 2025-04-14 185035

  • Menus

Screenshot 2025-04-14 185043

  • Profile

Screenshot 2025-04-14 185052

  • Order History

Screenshot 2025-04-14 185104


🛠️ Admin Role

Screenshot 2025-04-14 184642

  • Add Food

Screenshot 2025-04-14 184659

  • All Order

Screenshot 2025-04-14 184710

  • Menus

Screenshot 2025-04-14 184722

Screenshot 2025-04-14 184742


📁 Project Structure

OnlineFoodApp/
│
├── src/
│   └── main/
│       ├── java/
│       │   └── com.onlinefood/
│       │       ├── controller/     # Servlets (Controllers)
│       │       ├── dao/            # Database logic (Data Access Objects)
│       │       ├── model/          # Models
│       │       └── utils/          # DB connection, helpers
│       └── webapp/
│           ├── css/                # Stylesheets
│           ├── js/                 # JavaScript files
│           ├── admin/              # Admin dashboard views
│           ├── user/               # User dashboard views
│           ├── images/             # Image assets
│           ├── index.jsp           # Homepage
│           └── login.jsp           # Login page
└── README.md

🍚 ================= MySQL Database =================

STEP 1: Open MySQL Command Prompt or MySQL Workbench

STEP 2: Login to the administrator user of MySql: mysql -u <username> -p (Enter Password if asked)

STEP 3: Copy paste and execute the MySQL Query from the following file:-


📞 Contact Information

🐙 GitHub: https://github.com/pratikkhot100

💼 LinkedIn: https://www.linkedin.com/in/pratikkhot01

📧 Email: pratikkhot1207@gmail.com