A full-stack food ordering web application built for Sekondi-Takoradi, Ghana. Order local and international dishes, track delivery, and pay via Mobile Money or card
# π½οΈ QuickBite β Online Food Ordering System
A full-stack food ordering web application built with HTML/CSS/JavaScript (frontend) and Java (backend) connected to MySQL via XAMPP. Features a modern design with cart, wishlist, promo codes, checkout flow, and order tracking.
---
## π Project Structure
```
food-ordering-system/
β
βββ FRONTEND/ β Everything the user SEES
β βββ index.html β Main page structure
β βββ style.css β All visual styling
β βββ main.js β All interactivity & logic
β βββ assets/ β Images and icons
β
βββ FRONTEND/BACKEND/ β Server-side Java code
βββ src/
β βββ Main.java β Entry point (run this)
β βββ Server.java β HTTP server & routing
β βββ DatabaseConnection.java β MySQL connection
β βββ FoodRoutes.java β /api/foods
β βββ OrderRoutes.java β /api/orders
β βββ UserRoutes.java β /api/users
βββ lib/ β JAR files (MySQL Connector)
βββ database.sql β Run this in phpMyAdmin
βββ config.properties β Database credentials
```
---
## π How to Set Up & Run
### Step 1 β Database Setup
1. Open **XAMPP Control Panel**
2. Start **Apache** and **MySQL**
3. Open browser β go to `
localhost`
4. Click the **SQL** tab
5. Copy & paste everything from `FRONTEND/BACKEND/database.sql`
6. Click **Go** β this creates your database and tables
### Step 2 β Download Required JAR Files
Put the MySQL Connector JAR in the `FRONTEND/BACKEND/lib/` folder:
- **MySQL Connector**:
dev.mysql.com
- Download the platform-independent ZIP, extract the `.jar` file
### Step 3 β Run the Frontend
1. Open the `FRONTEND/` folder in VS Code
2. Right-click `index.html` β **Open with Live Server**
3. Your app opens in the browser at `
localhost`
### Step 4 β Run the Backend
In the terminal, navigate to the backend folder and compile β¦