Skip to content

madzai/food_order_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FullStack food ordering app

This food ordering app involves FastAPI for backend and React for frontend.

alt text
alt text
alt text

Copy the code to local directory

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

Install required Python packages for backend

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 code

Run the backend with the following command:

uvicorn main:app --reload

The backend will be available in http://127.0.0.1:8000/docs

Backend data

The menu is stored in menu_all.csv, which can be amended to change the menu from Mon to Sun.

Frontend

Install required packages with npm for frontend

Frontend is run with React.
Go to the frontend folder to install the required packages:

cd React/food_order/
npm install

Run the code

Run the frontend with the following command:

npm start

The frontend will be available in http://localhost:3000/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published