Skip to content

Toite-app/internal-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

234 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toite Logo

Restaurant Management Internal Frontend

A modern, responsive internal dashboard for restaurant management built with Next.js

License Last Commit Security Rating Maintainability Rating Bugs Docker Pulls


🥔 Live Demo

See live demo with seed data on https://demo.toite.ee/. Use Credentials:

  • Username: admin
  • Password: 123456
Frontend Dashboard

All data are shared across everyone but don't worry, I will integrate something better in future.


⭐ Features

  • Restaurant Management - Create and manage multiple restaurants with customizable settings
  • Worker/Staff Management - Handle employees, roles, and permissions
  • Order Management - Real-time order processing with WebSocket support
  • Menu & Dish Management - Flexible menu system with categories, modifiers, and pricing
  • Guest Management - Track and manage customer information
  • Workshift Management - Schedule and track employee shifts and payments
  • Discount System - Configurable discounts and promotions
  • Multi-language Support - Internationalization (i18n) ready
  • File Storage - S3-compatible file uploads and management

🚀 Getting Started

Prerequisites

  • Node.js 16.0.0 or higher
  • Yarn 1.19.1 or higher

Installation

  1. Clone the repository:
git clone https://github.com/Toite-app/internal-frontend.git
cd internal-frontend
  1. Install dependencies:
yarn install
  1. Set up environment variables:
cp .env.example .env.local
  1. Start the development server:
yarn dev

The application will be available at http://localhost:3035


🔧 Environment Variables

Variable Description Default
NEXT_PUBLIC_API_URL Backend API URL http://localhost:6701
NEXT_PUBLIC_SOCKET_URL WebSocket connection path /api

Create a .env.local file in the root directory with your configuration:

NEXT_PUBLIC_API_URL=http://localhost:6701
NEXT_PUBLIC_SOCKET_URL=/api

🐳 Docker

Build the image

docker build -t toite-internal-frontend .

Run the container

docker run -p 3035:3035 \
  -e NEXT_PUBLIC_API_URL=http://your-backend-url:6701 \
  -e NEXT_PUBLIC_SOCKET_URL=/api \
  toite-internal-frontend

Note: Environment variables prefixed with NEXT_PUBLIC_ are embedded at build time in Next.js. If you need different values for production, you should set them as build arguments:

docker build \
  --build-arg NEXT_PUBLIC_API_URL=https://api.yourdomain.com \
  --build-arg NEXT_PUBLIC_SOCKET_URL=/api \
  -t toite-internal-frontend .

📜 Available Scripts

Command Description
yarn dev Start development server on port 3035
yarn build Build for production
yarn start Start production server
yarn lint Run ESLint

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Internal dashboard for Toite restaurant management system

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages