Food-Ordering-System

🍽️ Food_Ordering_System

A simple web-based food ordering application built using Java (JSP/Servlets), JDBC, and MySQL, inspired by platforms like Swiggy or Zomato.


πŸ”§ Tech Stack


🌟 Features


πŸ“Œ Project Structure

FoodOrderingSystem/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ model/ β”‚ β”œβ”€β”€ dao/ β”‚ β”œβ”€β”€ servlet/ β”œβ”€β”€ web/ β”‚ β”œβ”€β”€ jsp/ β”‚ β”œβ”€β”€ css/ β”‚ β”œβ”€β”€ images/ β”œβ”€β”€ lib/ β”œβ”€β”€ sql/ (DB dump) β”œβ”€β”€ README.md β”œβ”€β”€ .gitignore β”œβ”€β”€ web.xml

πŸ–ΌοΈ System Architecture

```plaintext +β€”β€”β€”β€”+ +β€”β€”β€”β€”β€”β€”β€”+ +————–+ | User | β€”> | JSP / HTML Pages | <–>| Servlet | +β€”β€”β€”β€”+ +β€”β€”β€”β€”β€”β€”β€”+ +————–+ | DAO Layer | +————–+ | v +————–+ | MySQL DB | +————–+


πŸš€ How to Run the Project

βœ… Prerequisites

πŸ’‘ Steps to Run Locally on Tomcat Server:

  1. Clone the Repository ```bash git clone https://github.com/Mahaboob-Basha-Shaik/FoodOrderingSystem.git Import the Project

Open Eclipse or IntelliJ.

Import it as a Dynamic Web Project or Maven Web Project.

Configure the Database

Create a MySQL database (e.g., food_ordering_db).

Run the SQL script located in the sql/ folder to create tables and sample data.

Update your DB credentials in the DBUtil.java or db.properties file:

String url = β€œjdbc:mysql://localhost:3306/food_ordering_db”; String username = β€œroot”; String password = β€œyourpassword”; String password = β€œyourpassword”; Add JDBC Connector

Add mysql-connector-java-x.x.xx.jar to your lib directory or use Maven dependency if applicable.

Deploy on Tomcat

Add your project to Tomcat server in Eclipse.

Clean and build the project.

Start the Tomcat server.

Access the App http://localhost:8080/FoodOrderingSystem/

πŸ“· Screenshots

🏠 Home Page

Image Alt

🍽️ Restaurant Menu

Menu

πŸ›’ Cart Page

Cart

βœ… Order Confirmation

Order Confirmation

πŸ’³ Checkout Page

Checkout Page

βœ… Order Confirmation (Alt View)

Order Confirmation

πŸ‘€ User Profile Page

Profile Page

πŸ‘¨β€πŸ’» Author

Shaik Mahaboob Basha

πŸ’Ό Aspiring Full Stack Java Developer Passionate about Web Development and Clean Code

πŸ“« Let’s Connect!

πŸ’Ό [LinkedIn] https://www.linkedin.com/in/mahaboob-shaik-991380239

πŸ“§ Email:maheboob2002basha@gmail.com.com

πŸ§‘β€πŸ’» [GitHub] https://github.com/Mahaboob-Basha-Shaik

🌐 [Portfolio Website : https://mahaboob-basha-shaik.vercel.app/]

πŸ“ Location: India


β€œCode is like humor. When you have to explain it, it’s bad.” –Shaik Mahaboob Basha