Skip to content

Mairaarshad19/OnlineFoodOrderSystem

Repository files navigation

🍴 Online Food Order System

C# WinForms MySQL ADO.NET License

📌 Overview

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.


🚀 Features

  • 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

🛠️ Tech Stack

  • C# (.NET Framework, WinForms)
  • MySQL Database
  • ADO.NET / DataTables
  • GitHub Desktop for version control

📂 Project Structure

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


⚙️ Prerequisites

  • Visual Studio (2019 or later)
  • .NET Framework
  • MySQL Server
  • GitHub Desktop (for version control)

🔧 Installation

  1. Clone the repository:
   git clone https://github.com/Mairaarshad19/OnlineFoodOrderSystem.git
  1. Open the solution in Visual Studio.
  2. Configure your MySQL connection string in DatabaseHelper.cs.
  3. Run database migrations or import the provided SQL schema.
  4. Build and run the project.

🎮 Usage

  • 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.

📸 Screenshots

Customer Screen

Customer Screen

Payment Screen

Payment Screen


📜 License

This project is licensed under the MIT License — you are free to use, modify, and distribute with attribution.


🤝 Contributing

Contributions are welcome!

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit changes (git commit -m "Added feature")
  4. Push to branch (git push origin feature-name)
  5. Open a Pull Request

🧭 Roadmap

  • ✅ Cart & payment integration
  • ✅ Cuisine/restaurant management
  • 🔜 Online database hosting
  • 🔜 User roles (Admin vs Customer)
  • 🔜 Reporting & analytics

👩‍💻 Author

Developed by Maira Arshad University project — Computer Science specialization in security & data structures.

About

Online Food Order System built with C# WinForms and MySQL with features of cuisine & restaurant selection, cart management, and payment tracking.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages