Backend service for a restaurant management system built with FastAPI using Onion Architecture.
Frontend Repository
- JWT authentication and authorization
- Role-based access control
- Menu and category management
- Order management
- Table management
- QR payment support
- Real-time updates via WebSockets
- PostgreSQL integration using SQLAlchemy
- Python
- FastAPI
- Pydantic
- SQLAlchemy
- PostgreSQL
- SQLAlchemy
- Alembic
- JWT
- WebSockets
git clone https://github.com/realasdfg/restaurant.git
cd restaurantpython -m venv venv
source venv/bin/activatepip install -r requirements.txtCreate a .env file:
DB_URI=your_db_uri
SQLALCHEMY_ENGINE_URI=your_engine_uri
SECRET_KEY=your_secret_keyalembic upgrade headpython main.pyAfter starting the application:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- Authentication
- User Management
- Menu Management
- Order Processing
- Table Management
- Statistics
app/
├── models/
├── repositories/
├── routers/
├── schemas/
├── services/
├── utils/
migration/
main.py
MIT