The Mini Online Food Ordering System. This web application is designed to provide a seamless experience for users to browse and order delicious food items.
Features
-
Create New Food:
- only Superusers who can add new food items to the system.
-
View All Foods:
- Users can browse and view a list of all available food items.
-
Add to Cart:
- Users can add selected food items to their shopping cart.
-
View Cart:
- Users can view and manage items in their shopping cart.
-
User Authentication:
- Register: Users can create new accounts.
- Login: Users can log in to their accounts.
- Change Password: Users can change their account passwords.
- Update User Information: Users can update their profile information.
Technologies
This project uses the following technologies:
- Django: A high-level Python web framework that encourages rapid development and clean, pragmatic design.
- Tailwind CSS: A utility-first CSS framework that provides low-level utility classes to build designs directly in your markup.
- HTML, CSS, and JavaScript: Fundamental technologies for building web applications.
Requirements
Make sure you have the following dependencies installed:
- Python
- Django
- NodeJs
Installation
Clone the repository:
bashgit clone https://github.com/kimkorngmao/DjanFood.git cd DjanFood
Create a virtual environment:
bashpython -m venv venv
Activate the virtual environment:
-
On Windows:
bashvenv\Scripts\activate
-
On macOS and Linux:
bashsource venv/bin/activate
Install the required dependencies:
bashpip install -r requirements.txt
Install Tailwind CSS dependencies
python manage.py tailwind install
Apply migrations:
bashpython manage.py migrate
Create a superuser (for creating new food items):
bashpython manage.py createsuperuser
Follow the prompts to set up the superuser account.
Usage
Run the development server:
bashpython manage.py runserver
Start Django Tailwind CSS:
bashpython manage.py tailwind start
Access the application in your web browser at http://localhost:8000
.
Log in with the superuser credentials to create new food items.