Skip to content

realasdfg/restaurant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

127 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurant Automation System — Backend

Backend service for a restaurant management system built with FastAPI using Onion Architecture.
Frontend Repository

Features

  • 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

Tech Stack

  • Python
  • FastAPI
  • Pydantic
  • SQLAlchemy
  • PostgreSQL
  • SQLAlchemy
  • Alembic
  • JWT
  • WebSockets

Getting Started

Clone the repository

git clone https://github.com/realasdfg/restaurant.git
cd restaurant

Create virtual environment

python -m venv venv
source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Configure environment variables

Create a .env file:

DB_URI=your_db_uri
SQLALCHEMY_ENGINE_URI=your_engine_uri
SECRET_KEY=your_secret_key

Apply migrations

alembic upgrade head

Run the server

python main.py

API Documentation

After starting the application:

Main Modules

  • Authentication
  • User Management
  • Menu Management
  • Order Processing
  • Table Management
  • Statistics

Screenshots

image image image

Project Structure

app/
├── models/
├── repositories/
├── routers/
├── schemas/
├── services/
├── utils/
migration/
main.py

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors