A web application for ordering food from a restaurant. Users can view the menu, select quandity, and place an order. The application is built using Django and React, and uses JWT authentication.
- Django 4.2
- React 16.13.1
- JWT authentication
- Material UI 4
- Axios
- View menu items
- Select and add the quandity of the menu items
- Place orders
- JWT authentication for user login and registration
-
Clone the repository
-
Create a virtual environment and activate it:
python3 -m venv myenv source myenv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Set up the backend by navigating to the
backend
directory and running the following commands:python manage.py makemigrations python manage.py migrate python manage.py runserver
-
Set up the frontend by navigating to the
Frontend\restapi
directory and running the following commands:npm install npm start
Note: You need to have Node.js installed to run the frontend.
-
Access the application at
http://localhost:3000
- Register for an account or log in if you already have an account.
- View the menu items and select the quandity of items then place the order.
- Review your order.