Skip to content

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.

Notifications You must be signed in to change notification settings

pratikkhot100/Food-Order-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” 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: [email protected]

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published