https://github.com/pratikkhot100/food-order-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.
https://github.com/pratikkhot100/food-order-application
bootstrap core-java css html java java-database-connectivity java-web-application javascript jsp model-view-controller mvc-architecture mysql-database online-food-order servlet
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/pratikkhot100/food-order-application
- Owner: pratikkhot100
- Created: 2025-04-07T16:08:46.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-14T19:03:59.000Z (about 1 month ago)
- Last Synced: 2025-04-15T04:14:10.703Z (about 1 month ago)
- Topics: bootstrap, core-java, css, html, java, java-database-connectivity, java-web-application, javascript, jsp, model-view-controller, mvc-architecture, mysql-database, online-food-order, servlet
- Language: Java
- Homepage:
- Size: 3.92 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🍔 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


- Company
- Contact
- Login

- Registration
---
### 👤 User Role
- Menus
- Profile
- Order History
---
### 🛠️ Admin Role
- Add Food
- All Order
- Menus

---### 📁 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 -p``` (Enter Password if asked)STEP 3: Copy paste and execute the MySQL Query from the following file:-
- Run the Sql Query From this file: [MySQL Database](https://github.com/pratikkhot100/Online-Food_Application/blob/main/mysql_database.sql)---
## 📌 "Suggestions and project improvement ideas are welcomed!"
- [Pratik Khot](https://github.com/pratikkhot100)