Skip to content

strelec00/serve-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Serve Sync πŸ§‘β€πŸ³

Serve Sync is a web application designed to streamline restaurant operations by organizing the workflow between waiters, chefs, and administrators.

Features

  • Authentication System

    • User registration and login
    • Admin can assign roles to registered users
    • Newly registered users have Role = null until an Admin assigns one
  • User Roles

    • Admin
      • Full access: Tables, Menu, Orders, Users
      • Assign roles, manage all data
    • Waiter
      • Access: Tables, Menu
      • Add/delete tables and menu items
      • Take guest orders and send to kitchen
      • Edit orders until chef starts preparing them
    • Chef
      • Access: Orders, Menu
      • Update order status (In Progress / Ready)
      • Manage menu items

Workflow

1. Table Management

Admins and waiters can create and delete tables.

2. Order Placement

  • Waiter selects a table β†’ clicks Order
  • Menu items are loaded from DB
  • Waiter adds items to the order
  • Order is sent to kitchen

3. Order Lifecycle

  • Chef marks order as In Progress
  • Waiter can no longer edit the order
  • Chef marks order as Ready
  • Waiter sees it's ready β†’ delivers food
  • After delivery β†’ Waiter clicks Order Finished β†’ order is removed

Technologies

  • Backend: .NET 8 & Entity Framework Core
  • Frontend: React
  • Database: PostgreSQL
  • Auth: JWT Tokens

Requirements

Setup Instructions

1. Clone the repository

git clone https://github.com/strelec00/serve-sync
cd serve-sync

Backend Setup

  1. Navigate to backend
cd backend/
  1. Configure DB Connection In appsetting.json, replace your_username and your_password with valid SQL Server credentials. Set Port if needed.
{
"ConnectionStrings": {    "DefaultConnection":"Host=localhost;Port=$5432;Database=ServeSync;Username=your_username;Password=your_password"
  }
}
  1. Install Entity Framework Tools (If not already installed)
dotnet tool install --global dotnet-ef
  1. Apply Migrations and Seed the Database
dotnet ef database update
  1. Run the Backend Backend should run on Port: 5123
dotnet run

Frontend Setup

  1. Navigate to Frontend
cd ../frontend
  1. Install Dependencies
npm install
  1. Run the Frontend
npm run dev

Default Login Credentials

Role Username Password
Admin adminuser adminpass
Chef chefuser chefpass
Waiter waiteruser waiterpass
Waiter jan strelec

About

A real-time restaurant order management system for restaurant staff. πŸ§‘β€πŸ³

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages