A Java-based food delivery application with Swing GUI that allows users to browse restaurants, add items to cart, and place orders.
- 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
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
- Java JDK 8 or higher
- Swing (included with JDK)
- Compile all Java files:
javac main/*.java model/*.java- Run the login interface:
java main.LoginUIOr run the console version:
java main.Main- Register: Create a new account by entering username and password
- Login: Enter credentials to access the app
- Browse: Select a restaurant to view menu items
- Add to Cart: Enter item number to add to cart
- View Cart: See selected items and total
- Place Order: Confirm order and save bill to file
users.txt- Stores user credentialsmain/orders.txt- Stores placed orders and bills