The Online Food Order System is a C# Windows Forms application integrated with a MySQL database. It allows users to browse cuisines, select restaurants, add food items to a cart, and complete orders with payment tracking. This project demonstrates practical use of data structures, database operations, and UI design in a real-world food ordering scenario.
- Cuisine & restaurant selection
- Cart management (add, remove, clear items)
- Payment system with status tracking (Pending → Completed)
- Restriction: one restaurant per cart
- Admin panel for managing cuisines, restaurants, and menu items
- Data validation (quantity > 0, availability checks)
- User authentication & session handling
- C# (.NET Framework, WinForms)
- MySQL Database
- ADO.NET / DataTables
- GitHub Desktop for version control
OnlineFoodOrderSystem/ │── .vs/ # Visual Studio configuration │── BL/ # Business Logic Layer │── DL/ # Data Access Layer │── Helpers/ # Helper/Utility classes │── Properties/ # Project properties and settings │── Resources/ # Project resources (images, icons, etc.) │── Screenshots/ # Application screenshots │ ├── customer.png │ └── payment.png │── UI/ # Windows Forms (Presentation Layer) │── bin/ # Compiled binaries │── obj/ # Build artifacts │── packages/ # NuGet packages │── App.config # Application configuration │── DatabaseHelper.cs # Database helper class │── food_order_system.sql # Database schema and sample data │── Online Food Order System.csproj # Visual Studio project file │── Online Food Order System.sln # Visual Studio solution │── packages.config # NuGet package references │── Program.cs # Application entry point │── README.md # Project documentation │── LICENSE.txt # License │── .gitattributes # Git attributes │── .gitignore.txt # Git ignore rules
- Visual Studio (2019 or later)
- .NET Framework
- MySQL Server
- GitHub Desktop (for version control)
- Clone the repository:
git clone https://github.com/Mairaarshad19/OnlineFoodOrderSystem.git- Open the solution in Visual Studio.
- Configure your MySQL connection string in
DatabaseHelper.cs. - Run database migrations or import the provided SQL schema.
- Build and run the project.
- Log in as a user.
- Select a cuisine → restaurant → food item.
- Add items to the cart (quantity > 0).
- Proceed to payment, choose a method, and confirm.
- Admin can manage restaurants, cuisines, and menu items.
This project is licensed under the MIT License — you are free to use, modify, and distribute with attribution.
Contributions are welcome!
- Fork the repo
- Create a feature branch (
git checkout -b feature-name) - Commit changes (
git commit -m "Added feature") - Push to branch (
git push origin feature-name) - Open a Pull Request
- ✅ Cart & payment integration
- ✅ Cuisine/restaurant management
- 🔜 Online database hosting
- 🔜 User roles (Admin vs Customer)
- 🔜 Reporting & analytics
Developed by Maira Arshad University project — Computer Science specialization in security & data structures.

