
FastAPI Restaurant Project
Overview:
This project is a RESTful API built with FastAPI to manage restaurant operations for staff and customers. It provides CRUD endpoints for handling customers, orders, menu items, and reviews while offering staff insights into sales and operations.
Key Features:
View and manage restaurant menus
Place and track customer orders
Handle payments and promotions
Enable customer feedback and reviews
Setup Instructions
Prerequisites:
Python 3.9+
A virtual environment tool like
venv
orvirtualenv
Dependency management through
pip
Access to a database (e.g., PostgreSQL)
Installation Steps:
Clone the Repository:
git clone <repository_url> cd Final-Project-master
Set Up the Virtual Environment:
python3 -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate
Install Dependencies:
pip install -r requirements.txt
Configure Environment Variables: Create a
.env
file with the following:DATABASE_URL=postgresql://<username>:<password>@<host>:<port>/<database_name> SECRET_KEY=<your_secret_key>
Run the Server:
python api/main.py
The server will be accessible at
http://127.0.0.1:8000/
.