A comprehensive web-based food delivery and restaurant management system built with PHP and MySQL. This application allows restaurant owners to manage their menus and orders, while customers can browse menus, place orders, and track their history.
(Note: Background illustration used in the app)
- Dashboard: Overview of menu items, active orders, and reviews.
- Menu Management:
- Add, Edit, and Delete menu items.
- Upload images for each food item.
- Order Management: View incoming orders, change status (Pending -> Processing -> Completed/Cancelled).
- Promotions: Create and manage discount codes.
- Profile: Update restaurant details and password.
- Visual Menu: Browse food items with images, prices, and descriptions.
- Ordering: Place orders with "Cash on Delivery" or "Credit Card".
- Order History: Track the status of current and past orders.
- Profile: Manage personal account information.
- Backend: PHP (Native)
- Database: MySQL
- Frontend: HTML5, CSS3 (Custom responsive design), JavaScript
- Icons: Font Awesome
- Fonts: Google Fonts (Inter)
-
Prerequisites:
- XAMPP (or any PHP/MySQL local server environment).
-
Clone/Download:
- Place the project folder (e.g.,
Food-management) inside your server's root directory (e.g.,htdocsfor XAMPP).
- Place the project folder (e.g.,
-
Database Setup:
- Open phpMyAdmin (
http://localhost/phpmyadmin). - Create a new database named
food_delivery_system. - Import the
db/food_delivery_system.sqlfile located in the project folder. - Update Note: If you encounter "Unknown column image_path" errors, run the included helper script at
http://localhost/Food-management/update_db_schema.phpto patch your database.
- Open phpMyAdmin (
-
Configuration:
- If your database credentials differ from the defaults (User:
root, Pass: ``), updateincludes/db_connect.php.
- If your database credentials differ from the defaults (User:
-
Run:
- Open your browser and navigate to:
http://localhost/Food-management/
- Open your browser and navigate to:
Food-management/
├── assets/ # CSS, Images, Uploads
├── auth/ # Login, Signup, Registration logic
├── customer/ # Customer-specific pages (Home, Orders)
├── dashboard/ # Restaurant Owner Dashboard & Stats
├── db/ # SQL Database file
├── includes/ # Header, Footer, DB Connection
├── menu/ # Menu Management (Add/Edit/View)
├── orders/ # Order Management for Owners
├── profile/ # User Profile pages
└── index.php # Entry point (Redirects to Join Us)
If you imported the sample data:
Restaurant Owner:
- Username:
admin - Password:
admin123(Note: If login fails, create a new account via Sign Up)
Customer:
- Create a new account via the "Join Us" page.
- Image Support: Added ability to upload rich food images.
- Enhanced UI: Improved background visibility and responsive cards.
- Workflow: Streamlined "Join Us" flow for new users.
Created for the Food Delivery Management Project.