Mealmate is a Django-based web application that allows users to register as restaurant owners or customers. Restaurant owners can add, edit, and delete restaurants, while customers can browse menus, place orders, and make payments using Razorpay.
- User registration and login (for both restaurant owners and customers)
- Secure authentication using Django's built-in authentication system
- Add new restaurants
- Edit and update restaurant details
- Delete restaurants
- Customers can browse menus
- Add items to the cart
- Place orders
- Razorpay integrated for secure online payments
git clone https://github.com/your-username/mealmate.git
cd mealmatepython3 -m venv venv
source venv/bin/activate # For Mac/Linuxpip install -r requirements.txtpython manage.py migratepython manage.py createsuperuserpython manage.py runserverNow, open your browser and go to http://127.0.0.1:8000/
mealmate/
│── delivery/
│ │── migrations/
│ │── static/
│ │── templates/delivery/
│ │ ├── add_res.html
│ │ ├── base.html
│ │ ├── checkout.html
│ │ ├── cusmenu.html
│ │ ├── customer_home.html
│ │ ├── display_res.html
│ │ ├── failed.html
│ │ ├── index.html
│ │ ├── menu.html
│ │ ├── orders.html
│ │ ├── show_cart.html
│ │ ├── sign_in.html
│ │ ├── sign_up.html
│ │ ├── success.html
│ │ ├── userdata.html
│ │── __init__.py
│ │── admin.py
│ │── apps.py
│ │── forms.py
│ │── models.py
│ │── tests.py
│ │── views.py
│── manage.py
│── requirements.txt
| Method | Endpoint | Description |
|---|---|---|
| GET | /restaurants/ |
List all restaurants |
| POST | /restaurants/add/ |
Add a new restaurant |
| PUT | /restaurants/update/<id>/ |
Update restaurant details |
| DELETE | /restaurants/delete/<id>/ |
Delete a restaurant |
| GET | /menu/ |
Get menu items |
| POST | /order/ |
Place an order |
- Sign up at Razorpay
- Get API keys from Razorpay Dashboard
- Add API keys to Django settings:
RAZORPAY_KEY_ID = "your_key_id"
RAZORPAY_KEY_SECRET = "your_key_secret"