The Online Canteen Management System is a web-based application designed to simplify the ordering and management of food items in a canteen. This system enables users to view the menu, place orders, and manage their account details. It is built using PHP, JavaScript, HTML, CSS, and MySQL for data management.
- User Authentication: Register and log in to manage your account.
- Menu Display: View available food items with prices and descriptions.
- Order Management: Place, update, and cancel orders easily.
- Admin Panel: Manage food items, view orders, and track sales.
- Responsive Design: Accessible on various devices (desktop, tablet, mobile).
- Real-time Updates: Dynamic updates to the menu and orders using JavaScript.
- Database Integration: Data storage and retrieval using MySQL.
A live demo of the application can be found here: Live Demo
- Frontend:
- HTML
- CSS
- JavaScript
- Backend:
- PHP
- MySQL
- A web server (e.g., XAMPP, WAMP, or any hosting service that supports PHP and MySQL).
- PHP installed on your server.
- MySQL database.
-
Clone the Repository:
git clone https://github.com/yourusername/online-canteen-management.git
-
Navigate to the Project Directory:
cd online-canteen-management
-
Import Database:
- Create a new database in your MySQL server.
- Import the
database.sql
file found in the project directory to set up the required tables.
-
Configure Database Connection:
- Open
config.php
(or equivalent) and update the database credentials:$servername = "localhost"; // Database server $username = "your_db_username"; // Database username $password = "your_db_password"; // Database password $dbname = "your_db_name"; // Database name
- Open
-
Run the Application:
- Start your web server (e.g., XAMPP/WAMP).
- Open a web browser and navigate to
http://localhost/online-canteen-management
.