Skip to content
abmdevxPublic

About

Restora is a restaurant management platform for bringing restaurant teams, operations, and guest experiences together. The repository contains a React frontend and an Express/MongoDB API.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

Restora logo

Restora

Restaurant management for tables, live orders, menu, inventory and reports, plus easy table booking for guests.

React Vite React Router Tailwind CSS ESLint Node


Restora preview: reports, order operations, table management and mobile layout

Table of contents

Overview

Restora brings a restaurant, its team and its guests together in one responsive web app. Staff with an admin account manage the floor, kitchen tickets, menu, stock and sales reports. Customers see a simpler view where they can check live table availability and book a table in a few clicks. Both views support light and dark themes and work on desktop, tablet and mobile.

Preview

Landing page and sign in

Landing page
Landing page
Sign in page
Sign in

Tables and orders

Configure the dining floor, then follow each ticket from the first order to the final payment.

Table management
Table management
Order operations
Order operations
New table order
New table order
Order operations in dark mode
Orders in dark mode

Menu, inventory and reports

Menu management
Menu management
Inventory management
Inventory

Reports and analytics
Reports and analytics

Guest reservations

Guests browse open tables, filter by location and book with date, party size and special requests.

Reserve a table dialog

Features

For restaurant staff (admin)

  • Tables: create and remove tables, set seating capacity and floor location, and see which are available, reserved or occupied.
  • Orders: open an order for a table, add items, move it through the kitchen stages, take payment or cancel it. Search and filter by status (Pending, In Kitchen, Ready, Served, Cancelled).
  • Menu: create, edit and delete dishes, and switch a dish on or off with one tap.
  • Inventory: add stock items, update, restock or deduct quantities, and watch low-stock alerts.
  • Reports: daily sales, revenue trends, top-selling dishes, table utilisation and stock status for any date range.
  • Customer view: switch to the guest experience from the header to see what customers see.

For guests (customer)

  • Live availability: see how many tables are open right now and filter by location.
  • Easy booking: reserve a table with date and time, party size (checked against capacity), contact details and optional notes.
  • Manage bookings: cancel a reservation and the table opens up again immediately.

For everyone

  • Light and dark themes with a toggle in the header.
  • Responsive layout with a collapsible mobile menu.
  • Clear feedback: toast notifications and confirmation dialogs for important actions.
  • Safe sessions: sign-in uses HTTP-only cookies set by the backend, and private pages redirect to the sign-in page.

Tech stack

Area Technology
Framework React 19
Build Vite 8
Routing React Router 7
Styling Tailwind CSS v4 with Restora brand tokens
State React context (auth, theme, toasts)
HTTP Native fetch with credentials
Quality ESLint (React Hooks and React Refresh rules)

Getting started

Requirements

  • Node.js 20 or newer
  • The Restora backend running (default http://localhost:8000)

Installation

# 1. Go to the frontend folder
cd frontend

# 2. Install dependencies
npm install

# 3. Create your environment file (optional)
cp .env.example .env.local

# 4. Start the dev server
npm run dev

The app is now available at http://localhost:5173.

Production build

cd frontend
npm run build      # build into frontend/dist/
npm run preview    # serve the production build locally

Environment variables

Set these in frontend/.env.local (copy it from frontend/.env.example).

Variable Default Purpose
VITE_API_URL http://localhost:8000/api/v1 Backend API address, including the /api/v1 prefix

Available scripts

Run these from the frontend/ folder.

Command What it does
npm run dev Start Vite with hot reload
npm run lint Run ESLint
npm run build Create a production build
npm run preview Preview the production build

Project structure

.
├── README.md
├── backend/                    # API server (see backend/README.md)
└── frontend/
    ├── public/
    │   ├── restora.png         # Brand logo
    │   └── screenshots/        # Images used in this README
    └── src/
        ├── api/                # API client and one module per area
        ├── components/         # Dashboards (tables, orders, menu, inventory, reports) and UI pieces
        ├── context/            # Auth, theme and toast providers
        ├── hooks/              # useAuth, useTheme, useToast
        ├── layouts/            # Auth and dashboard shells
        ├── pages/              # Home, login, register and dashboard pages
        ├── routes/             # Route definitions and the protected-route guard
        ├── App.jsx             # Providers and router
        ├── index.css           # Tailwind theme and global styles
        └── main.jsx            # Entry point

Pages and routes

Page Route Access What it does
Landing page / Public Introduces Restora
Sign in /login Public Authentication
Create account /register Public Registration
Tables / Reserve a table /dashboard Private Admins manage tables; customers book one
Orders /orders Admin Live order operations
Menu /menu Admin Dish management
Inventory /inventory Admin Stock management
Reports /reports Admin Sales and utilisation analytics

Signed-out visitors are redirected to the sign-in page. Customers always see the reservation view, even on admin URLs.

Backend integration

The frontend talks to the Restora API under /api/v1 and sends cookies with every request, so the backend can set and clear its HTTP-only authentication cookies. It uses these endpoint groups:

Area Endpoints
Users /users/register, /users/login, /users/logout
Tables /tables/all-tables, /tables/create, /tables/delete/:id
Reservations /reservations/all-reservations, /reservations/create, /reservations/cancel/:id
Orders /orders/get-all, /orders/create, /orders/update-status/:id, /orders/add-items/:id, /orders/process-payment/:id, /orders/cancel/:id
Menu /menu/all-menu, /menu/create, /menu/update/:id, /menu/toggle-availability/:id, /menu/delete/:id
Inventory /inventory/all-items, /inventory/low-stock, /inventory/add-item, /inventory/restock/:id, /inventory/deduct/:id
Reports /reports/daily-sales, /reports/revenue, /reports/top-selling, /reports/inventory, /reports/table-utilisation

Start the backend before testing account flows. Setup instructions are in backend/README.md.

About

Restora is a restaurant management platform for bringing restaurant teams, operations, and guest experiences together. The repository contains a React frontend and an Express/MongoDB API.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages