Skip to content

dynamicdeb04/java_project_priscilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Food Delivery App

A Java-based food delivery application with Swing GUI that allows users to browse restaurants, add items to cart, and place orders.

Features

  • User Authentication: Login and registration system with file-based storage
  • Restaurant Browsing: View available restaurants and their menus
  • Shopping Cart: Add/remove food items and view cart contents
  • Order Placement: Place orders with bill generation saved to file

Project Structure

food-delivery-app/
├── main/
│   ├── LoginUI.java    # Login/Register interface
│   ├── AppUI.java      # Main application UI
│   └── Main.java       # Console-based version
├── model/
│   ├── FoodItem.java   # Food item model
│   ├── Restaurant.java # Restaurant model
│   ├── Cart.java       # Shopping cart logic
│   └── User.java       # User model
└── users.txt           # User credentials storage

Requirements

  • Java JDK 8 or higher
  • Swing (included with JDK)

How to Run

  1. Compile all Java files:
javac main/*.java model/*.java
  1. Run the login interface:
java main.LoginUI

Or run the console version:

java main.Main

Usage

  1. Register: Create a new account by entering username and password
  2. Login: Enter credentials to access the app
  3. Browse: Select a restaurant to view menu items
  4. Add to Cart: Enter item number to add to cart
  5. View Cart: See selected items and total
  6. Place Order: Confirm order and save bill to file

File Storage

  • users.txt - Stores user credentials
  • main/orders.txt - Stores placed orders and bills

About

advanced java project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages