{"id":30913063,"url":"https://github.com/baoduong254/qrmeal","last_synced_at":"2026-04-15T16:32:19.932Z","repository":{"id":313227272,"uuid":"1050556023","full_name":"BaoDuong254/QRMeal","owner":"BaoDuong254","description":"A modern, full-stack QR code-based restaurant ordering system that enables contactless dining experiences","archived":false,"fork":false,"pushed_at":"2025-12-21T07:50:36.000Z","size":9011,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T07:56:32.659Z","etag":null,"topics":["fastify","nextjs","sqlite"],"latest_commit_sha":null,"homepage":"https://qrmeal.ticklab.site","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaoDuong254.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-04T15:41:48.000Z","updated_at":"2025-12-21T07:50:40.000Z","dependencies_parsed_at":"2025-09-04T18:21:31.833Z","dependency_job_id":"2377c72c-1ec6-4742-9f3f-04b409fa66a7","html_url":"https://github.com/BaoDuong254/QRMeal","commit_stats":null,"previous_names":["baoduong254/qrmeal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaoDuong254/QRMeal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaoDuong254%2FQRMeal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaoDuong254%2FQRMeal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaoDuong254%2FQRMeal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaoDuong254%2FQRMeal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaoDuong254","download_url":"https://codeload.github.com/BaoDuong254/QRMeal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaoDuong254%2FQRMeal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastify","nextjs","sqlite"],"created_at":"2025-09-09T22:29:21.797Z","updated_at":"2026-04-15T16:32:19.918Z","avatar_url":"https://github.com/BaoDuong254.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QRMeal\n\nA modern restaurant management system with QR code-based ordering for guests. Built as a full-stack monorepo application enabling seamless table management, order processing, and real-time updates for restaurant operations.\n\n## ✨ Features\n\n- 🔐 **Authentication \u0026 Authorization** - JWT-based auth for staff and guest access\n- 👥 **User Roles** - Distinct interfaces for Owner, Employee, and Guest\n- 📱 **QR Code Ordering** - Guests scan table QR codes to browse menu and place orders\n- 🍽️ **Menu Management** - Dynamic dish management with status tracking (Available/Unavailable/Hidden)\n- 📋 **Order Processing** - Real-time order tracking with multiple statuses (Pending, Processing, Delivered, Paid, Rejected)\n- 🪑 **Table Management** - Table capacity, status monitoring, and guest assignment\n- 💬 **Real-time Updates** - Socket.IO for live order notifications and status changes\n- 📊 **Dashboard** - Comprehensive analytics for revenue, orders, and popular dishes\n- 🖼️ **Media Management** - Image upload and management for dishes\n- 🐳 **Docker Support** - Containerized deployment with Docker Compose\n- 🌐 **Internationalization** - Multi-language support (English \u0026 Vietnamese)\n\n## 📋 Table of Contents\n\n- [QRMeal](#qrmeal)\n  - [✨ Features](#-features)\n  - [📋 Table of Contents](#-table-of-contents)\n  - [🛠 System Requirements](#-system-requirements)\n  - [🚀 Project Installation](#-project-installation)\n    - [Clone repository](#clone-repository)\n    - [Install dependencies](#install-dependencies)\n    - [Removing packages](#removing-packages)\n    - [Update packages](#update-packages)\n  - [🏃‍♂️ Running the Project](#️-running-the-project)\n    - [Development mode](#development-mode)\n    - [Production build](#production-build)\n  - [🔄 Git Workflow](#-git-workflow)\n    - [Commit Message Convention](#commit-message-convention)\n    - [Hooks](#hooks)\n    - [Branch Naming](#branch-naming)\n    - [Standard Workflow](#standard-workflow)\n  - [📜 Available Scripts](#-available-scripts)\n    - [Root level](#root-level)\n    - [Client](#client)\n    - [Server](#server)\n    - [Prisma](#prisma)\n\n## 🛠 System Requirements\n\n- Node.js \u003e= 24.11.1\n- pnpm \u003e= 10.26.1\n- Git\n\nIf you don't have pnpm installed, you can install it using one of the following methods:\n\n**Using npm:**\n\n```bash\nnpm install -g pnpm\n```\n\nFor more installation options, visit [pnpm installation guide](https://pnpm.io/installation).\n\n## 🚀 Project Installation\n\n### Clone repository\n\n```bash\ngit clone https://github.com/BaoDuong254/QRMeal.git\ncd QRMeal\n```\n\n### Install dependencies\n\nThe project uses pnpm workspaces. Simply run from the root directory:\n\n```bash\npnpm install\n```\n\nThis will install all dependencies for root, client, and server automatically.\n\n**Install package for specific workspace:**\n\n```bash\n# For client\npnpm add \u003cpackage-name\u003e --filter client\n\n# For server\npnpm add \u003cpackage-name\u003e --filter server\n```\n\n**Install dev dependencies:**\n\n```bash\n# For client\npnpm add -D \u003cpackage-name\u003e --filter client\n\n# For server\npnpm add -D \u003cpackage-name\u003e --filter server\n\n# For root\npnpm add -D \u003cpackage-name\u003e -w\n```\n\n**Examples:**\n\n```bash\n# Install axios for client\npnpm add axios --filter client\n\n# Install express types for server\npnpm add -D @types/express --filter server\n\n# Install husky for root workspace\npnpm add -D husky -w\n```\n\n### Removing packages\n\n```bash\n# Remove from client\npnpm remove \u003cpackage-name\u003e --filter client\n\n# Remove from server\npnpm remove \u003cpackage-name\u003e --filter server\n\n# Remove from root\npnpm remove \u003cpackage-name\u003e -w\n```\n\n### Update packages\n\n```bash\n# Update specific package\npnpm update \u003cpackage-name\u003e\n\n# Update all packages\npnpm update\n\n# Update packages for specific workspace\npnpm update --filter client\n```\n\n## 🏃‍♂️ Running the Project\n\n### Development mode\n\nThe project uses Turbo for monorepo management. Run both client and server simultaneously:\n\n```bash\n# From root directory - runs both client and server in parallel\npnpm dev\n```\n\nOr run them separately:\n\n```bash\n# Terminal 1 - Run server only\ncd server\npnpm dev\n\n# Terminal 2 - Run client only\ncd client\npnpm dev\n```\n\n### Production build\n\n```bash\n# Build all packages from root\npnpm build\n\n# Or build individually\ncd client\npnpm build\npnpm start       # Preview production build\n\ncd server\npnpm build\npnpm start       # Start production server\n```\n\n## 🔄 Git Workflow\n\n### Commit Message Convention\n\nThe project uses [Conventional Commits](https://www.conventionalcommits.org/):\n\n```bash\n\u003ctype\u003e[optional scope]: \u003cdescription\u003e\n\n[optional body]\n\n[optional footer(s)]\n```\n\n**Types:**\n\n- `feat`: New feature\n- `fix`: Bug fix\n- `docs`: Documentation update\n- `style`: Formatting changes that don't affect code logic\n- `refactor`: Code refactoring\n- `perf`: Performance improvement\n- `test`: Adding or fixing tests\n- `chore`: Build tasks, package manager configs, etc.\n\n**Examples:**\n\n```bash\ngit commit -m \"feat(auth): add user login functionality\"\ngit commit -m \"fix(api): resolve user data fetching issue\"\ngit commit -m \"docs: update installation guide\"\ngit commit -m \"style(client): format code with prettier\"\n```\n\n### Hooks\n\nThe project has built-in git hooks to ensure code quality:\n\n- **pre-commit**: Run lint and format code\n- **commit-msg**: Check commit message format\n\n### Branch Naming\n\n- `main`: Production branch\n- `feature/feature-name`: For new features\n- `bugfix/bug-description`: For bug fixes\n- `hotfix/issue-description`: For urgent production issues\n\n### Standard Workflow\n\n1. **Create a new branch**\n   Always branch off from the latest version of `main`.\n\n   ```bash\n   git checkout main\n   git pull origin main\n   git checkout -b feature/your-feature-name\n   ```\n\n2. **Work on your feature**\n   Make your code changes and commit them using the [Conventional Commits](https://www.conventionalcommits.org/) format:\n\n   ```bash\n   git add .\n   git commit -m \"feat(auth): add login functionality\"\n   ```\n\n3. **Rebase with the latest main branch**\n   Before pushing, make sure your branch is up to date with `main`:\n\n   ```bash\n   git fetch origin\n   git rebase origin/main\n   ```\n\n4. **Push your branch to remote**\n\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n\n5. **Create a Pull Request (PR)**\n   Open a PR to merge your branch into `main` using the project’s PR template.\n   Wait for review and approval before merging.\n\n6. **After Merge — Sync and Clean Up**\n   Once your PR is merged:\n\n   ```bash\n   git checkout main\n   git pull origin main\n   git branch -d feature/your-feature-name     # delete local branch\n   git push origin --delete feature/your-feature-name   # delete remote branch\n   ```\n\n## 📜 Available Scripts\n\n### Root level\n\n```bash\npnpm prepare        # Setup husky hooks\npnpm dev            # Run both client and server in development mode (parallel)\npnpm build          # Build both client and server\npnpm start          # Start both client and server (parallel)\npnpm lint           # Run linting for all packages\npnpm lint:fix       # Fix linting errors for all packages\npnpm format         # Check code formatting for all packages\npnpm format:fix     # Auto-format code for all packages\npnpm clean          # Clean build artifacts for all packages\n```\n\n### Client\n\n```bash\npnpm dev           # Start development server\npnpm build         # Build for production\npnpm start         # Preview production build\npnpm lint          # Check for linting errors\npnpm lint:fix      # Fix auto-fixable linting errors\npnpm format        # Check code formatting\npnpm format:fix    # Auto-format code\npnpm clean         # Clean build artifacts\n```\n\n### Server\n\n```bash\npnpm dev            # Start development server with nodemon\npnpm build          # Build TypeScript to JavaScript\npnpm start          # Start production server\npnpm debug          # Start server in debug mode\npnpm lint           # Check for linting errors\npnpm lint:fix       # Fix auto-fixable linting errors\npnpm format         # Check code formatting\npnpm format:fix     # Auto-format code\npnpm clean          # Clean build artifacts\n```\n\n### Prisma\n\n```bash\ncd server\n\n# Generate Prisma client\npnpm exec prisma generate\n\n# Push schema changes without migrations\npnpm exec prisma db push\n\n# Open Prisma Studio (database GUI)\npnpm exec prisma studio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaoduong254%2Fqrmeal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaoduong254%2Fqrmeal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaoduong254%2Fqrmeal/lists"}