This is a Django-based food ordering system that allows users to view, add, edit, and delete food items. Users can also place orders for available food items.
- View a list of food items
- View detailed information about each food item
- Add new food items
- Edit existing food items
- Delete food items
- Place orders for food items
- Django
- Bootstrap
- Python 3.6+
- Django 3.2+
- Git
-
Clone the repository:
git clone https://github.com/krishna-shah-07/foodordering.git cd foodordering
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Apply migrations:
python manage.py makemigrations python manage.py migrate
-
Create a superuser to access the Django admin:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Open your browser and go to
http://127.0.0.1:8000/admin
to log in to the admin site and start adding food items.
- Go to
http://127.0.0.1:8000/products/
to view the list of food items.
- Click on the "Add New Food Item" button on the food list page.
- Fill in the form and submit to add a new food item.
- Click on the "Edit" button next to a food item on the food list page.
- Update the form and submit to save changes.
- Click on the "Delete" button next to a food item on the food list page.
- Confirm the deletion.
- Click on a food item to view its details.
- Fill in the order quantity and submit the form to place an order.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
For any questions or inquiries, please contact [email protected].