A RESTful API for managing a restaurant's menu, orders, and customers using FastAPI and an SQL database.
A Python environment is required.
pip install -r requirements.txt
By default, the API can use MySQL or SQLite. Check the Technical Documentation for explanations on the easy switch. You can change the database URL in api/database.py to connect to a different SQL database.
Example for MySQL:
DATABASE_URL = "mysql+pymysql://username:password@localhost/db_name"for SQLite: ''' DATABASE_URL = "sqlite:///nameof.db"
uvicorn api.main:app --reload