This food ordering app involves FastAPI for backend and React for frontend.
Run the following command in your local folder after logging in with your Github account:
git clone https://github.com/madzai/food_order_app.git
Backend is run with FastAPI.
Create and activate a virtual environment. Then run the following code in the FastAPI folder:
cd FastAPI/
pip install -r requirements.txt
Run the backend with the following command:
uvicorn main:app --reload
The backend will be available in http://127.0.0.1:8000/docs
The menu is stored in menu_all.csv, which can be amended to change the menu from Mon to Sun.
Frontend is run with React.
Go to the frontend folder to install the required packages:
cd React/food_order/
npm install
Run the frontend with the following command:
npm start
The frontend will be available in http://localhost:3000/