A modern, enterprise-grade Point of Sale system built for the next generation of restaurants
- ๐ง Backend: Golang + Gin + PostgreSQL with raw SQL for maximum performance
- โก Frontend: React + TanStack Start + TypeScript + Tailwind CSS + shadcn/ui
- ๐๏ธ Database: PostgreSQL with comprehensive schema and optimized queries
- ๐ณ Infrastructure: Docker containers with Docker Compose orchestration
- ๐ Security: JWT authentication with role-based access control (RBAC)
- ๐ง AI-Enhanced Development: Advanced Cursor AI rules powered by Claude Sonnet 4 thinking
Clean, modern interface designed for speed and efficiency with real-time updates
Professional tablet-optimized kitchen interface with individual item tracking and as-ready service
๐ฏ New Kitchen Features:
- Individual Item Checklists - Mark each dish ready independently
- As-Ready Service - Serve dishes as they're completed (real restaurant workflow)
- Sound Notifications - Audio alerts for new orders, ready items, and served dishes
- Visual Progress Tracking - "1 ready โข 1 served โข 1 cooking (67% complete)"
- Touch-Optimized Design - 50px+ touch targets for tablet and TV screens
Our latest update includes professional data tables with:
- ๐ Advanced sorting & filtering with TanStack Table
- ๐จ Beautiful visual design with gradient avatars and color-coded indicators
- ๐ฑ Responsive layout that works perfectly on tablets and desktop
- โก Real-time search with debouncing for instant results
- ๐ Table/Cards view toggle for optimal data visualization
- ๐ Order Management: Create, modify, and track customer orders with real-time kitchen updates
- ๐จโ๐ณ Enhanced Kitchen Workflow: Professional as-ready service system with individual item tracking, sound notifications, and tablet-optimized interface
- ๐ณ Payment Processing: Complete multi-step payment flow with receipt generation and payment history
- ๐ Product Management: Full menu and category management with pricing, images, and inventory control
- ๐ช Table Management: Comprehensive table and seating arrangement system with availability tracking
- ๐ฅ Multi-Role Support: Role-based access control (Admin, Manager, Server, Counter, Kitchen)
- ๐ Comprehensive Admin Dashboard: Complete control center with navigation to all system areas
- ๐ Role-Based Interface Switching: Admin can access and monitor all role interfaces seamlessly
- ๐ค Staff Management: Create, manage, and delete user accounts with role assignments and permissions
- ๐ฐ Financial Reporting: Income reports, sales analytics, and performance metrics with visual charts
- โ๏ธ System Settings: Restaurant configuration, currency settings, tax rates, and operational parameters
- ๐ Menu Management: Full CRUD operations for categories and products with advanced table views
- ๐ Admin: Full system access with comprehensive management dashboard and beautiful data tables
- ๐ฝ๏ธ Server: Streamlined dine-in order creation interface optimized for speed
- ๐ฐ Counter/Checkout: All order types plus complete payment processing system
- ๐จโ๐ณ Kitchen: Order preparation workflow with status updates and timing management
This project features cutting-edge AI development assistance through advanced Cursor AI rules engineered with Claude Sonnet 4 thinking capabilities:
- ๐ง Business Logic Awareness: AI understands restaurant operations, user journeys, and revenue flows
- ๐ Context-Aware Decisions: Every code suggestion considers business impact and user experience
- ๐ฎ Predictive Insights: ML-powered recommendations for optimization and issue prevention
- โก Performance-First: Built-in performance monitoring and automated optimization suggestions
- ๐ Tech Debt Prevention: Automated consistency enforcement and code quality gates
- ๐งช Error Prevention: Comprehensive testing patterns with business boundary validation
- ๐ Performance Monitoring: Real-time tracking with business intelligence integration
- ๐ฏ DRY Principle: Automated duplicate code detection and pattern consolidation
- ๐ฝ๏ธ Server Journey: <30s order creation with intelligent UI optimization
- ๐จโ๐ณ Kitchen Workflow: <5s status updates with real-time queue optimization
- ๐ฐ Counter Operations: <10s payment processing with multi-modal support
- ๐ Admin Intelligence: Business dashboards with predictive analytics
- ๐ Automated Code Review: Business logic validation and architectural consistency
- ๐ Performance Regression Detection: Automatic rollback triggers for critical issues
- ๐จ Component Optimization: ML-powered suggestions for UI/UX improvements
- ๐ Business Impact Analysis: Every change evaluated for revenue and customer satisfaction impact
๐ก Development Superpower: These AI rules transform Cursor into a restaurant domain expert, providing intelligent suggestions, preventing issues before they happen, and ensuring every line of code contributes to business success.
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend (React) โ โ Backend (Golang) โ โ Database (PostgreSQL) โ
โ โ โ โ โ โ
โ โข TanStack Start โโโโโบโ โข Gin Web Framework โโโโโบโ โข User Management โ
โ โข TypeScript โ โ โข Raw SQL Queries โ โ โข Order System โ
โ โข TanStack Table โ โ โข JWT Authentication โ โ โข Product Catalog โ
โ โข Tailwind CSS โ โ โข Role-based APIs โ โ โข Financial Data โ
โ โข shadcn/ui Components โ โ โข RESTful Endpoints โ โ โข Comprehensive Logs โ
โ โข Real-time Updates โ โ โข CORS Middleware โ โ โข Optimized Indexes โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
# Start the entire system (easiest way)
make dev
# Or use Docker Compose directly
docker-compose -f docker-compose.dev.yml up -d
# Access the applications
Frontend: http://localhost:3000
Backend API: http://localhost:8080/api/v1
Database: localhost:5432| Role | Username | Password | Access Level |
|---|---|---|---|
| ๐ Admin | admin |
admin123 |
Full system access, all interfaces, beautiful admin tables |
| ๐ Manager | manager1 |
admin123 |
Business operations and oversight with reporting |
| ๐ฝ๏ธ Server | server1 / server2 |
admin123 |
Dine-in orders only with streamlined interface |
| ๐ฐ Counter | counter1 / counter2 |
admin123 |
All orders + complete payment processing |
| ๐จโ๐ณ Kitchen | kitchen1 |
admin123 |
Order preparation and status updates |
- ๐ Navigate to: http://localhost:3000
- ๐ Login as Admin: Use
admin/admin123for full system access - ๐ Explore Admin Dashboard: Access all interfaces via the beautiful sidebar navigation
- ๐ Switch Interfaces: Admin can view Server, Counter, Kitchen, and POS interfaces
- โ๏ธ Manage System: Create staff, manage menu with professional tables, configure settings
# Development
make help # Show all available commands
make dev # Start development environment with hot reloading
make up # Start Docker containers
make down # Stop Docker containers
make restart # Restart all services
# Database Management
make create-admin # Create a super admin user
make backup # Backup database and files
make restore # Restore from backup
make remove-data # Remove all data (DESTRUCTIVE)
make db-reset # Reset database with fresh schema and seed data
make db-shell # Access PostgreSQL shell
# Utilities
make logs # View all service logs
make status # Show service status
make clean # Clean up Docker resources
make test # Run tests
make lint # Run linting- โก Golang 1.21 - High-performance server runtime
- ๐ Gin Framework 1.9.1 - Fast HTTP web framework with middleware support
- ๐๏ธ Raw SQL with PostgreSQL Driver - Direct database operations for maximum control and performance
- ๐ JWT Authentication (v5.2.0) - Secure token-based authentication system
- ๐ก๏ธ CORS Middleware - Cross-origin request handling for development and production
- โ๏ธ TanStack Start 1.57.15 - Full-stack React framework with file-based routing
- โ๏ธ React 18.3.1 - Latest React with concurrent features and hooks
- ๐ TypeScript 5.6.2 - Type-safe development with comprehensive type definitions
- ๐ TanStack Table 8.21.3 - Powerful data table with sorting, filtering, and pagination
- ๐ TanStack Query 5.56.2 - Powerful data synchronization and caching
- ๐จ Tailwind CSS 3.4.13 - Utility-first CSS framework for rapid UI development
- โก Vite 5.4.8 - Lightning-fast build tool and dev server
- ๐งฉ shadcn/ui + Radix UI - Beautiful, accessible component library
- ๐ PostgreSQL 15-Alpine - Robust relational database with advanced features
- ๐ Comprehensive Schema - Users, orders, products, payments, and audit logs
- ๐ Role-based Security - Database-level access control and permissions
- โก Optimized Queries - Strategically indexed for maximum performance
- ๐ณ Docker Compose - Containerized development and production environments
- ๐ข Node.js 24.3.0 - Modern JavaScript runtime for development tools
- ๐ฏ Claude Sonnet 4 Intelligence - Advanced reasoning and business logic understanding
- ๐ 14 Enhanced Cursor Rules - Comprehensive development patterns and best practices
- ๐ฎ Predictive Code Assistance - Proactive suggestions based on business context
- ๐ก๏ธ Automated Quality Gates - Tech debt prevention and performance monitoring
- ๐ Performance-First Patterns - Built-in optimization and monitoring capabilities
- ๐ง AI-Enhanced Development: Advanced Cursor AI rules powered by Claude Sonnet 4 thinking capabilities
- ๐ Intelligent Code Assistance: Business logic awareness, predictive insights, and automated optimization
- ๐ Professional Table Views: Enterprise-grade data tables with TanStack Table integration
- ๐จ Beautiful UI/UX: Modern design with gradient avatars, color-coded badges, and smooth animations
- ๐ฑ Responsive Design: Optimized for desktop, tablet, and mobile devices
- โก Real-time Search: Instant filtering with debouncing and visual feedback
- ๐ View Toggle System: Switch between table and card views for optimal data visualization
- ๐ง AI-Powered Development - 14 advanced Cursor AI rules with Claude Sonnet 4 intelligence for business-aware coding
- ๐ Comprehensive Documentation - Extensive AI-enhanced rules and development guidelines
- ๐งช Type Safety - Complete TypeScript integration throughout the application
- ๐ Security First - JWT authentication, SQL injection prevention, and role-based access
- โก Performance Optimized - Efficient queries, caching, and optimized bundle sizes with AI monitoring
- ๐ณ Docker Ready - Full containerization with development and production configurations
This project represents hundreds of hours of development work, creating a modern, professional POS system that's completely free and open source. If you find this project valuable:
๐ Ways to Support:
- โญ Star this repository to show your appreciation
- ๐ Report bugs or suggest features to help improve the system
- ๐ฐ Sponsor development to help maintain and add new features
- โ Buy me a coffee to fuel late-night coding sessions
- ๐ฃ๏ธ Share the project with other restaurant owners or developers
๐ณ Donation Options:
- ๐ GitHub Sponsors - Support ongoing development
- ๐ฐ PayPal - Send donations to:
[email protected](one-time or recurring) - ๐ Cryptocurrency - Contact for wallet addresses
- ๐ข Commercial Licensing - Enterprise support and customization available
Every contribution helps make this project better for everyone! ๐
pos-full/
โโโ ๐ง .cursor/rules/ # AI-Enhanced Cursor rules (Claude Sonnet 4 powered)
โ โโโ business-logic-patterns.mdc # POS domain understanding & workflows
โ โโโ user-journey-optimization.mdc # Role-specific performance patterns
โ โโโ tech-debt-prevention.mdc # Code quality & consistency gates
โ โโโ testing-patterns.mdc # QA integration & error prevention
โ โโโ performance-optimization.mdc # Performance-first development
โโโ ๐ง backend/ # Golang REST API server
โ โโโ internal/api/ # Route definitions and handlers
โ โโโ internal/handlers/ # Business logic controllers
โ โโโ internal/middleware/ # Authentication and CORS
โ โโโ internal/models/ # Data models and DTOs
โ โโโ main.go # Application entry point
โโโ ๐จ frontend/ # TanStack Start React application
โ โโโ src/components/ # Reusable UI components
โ โโโ src/routes/ # File-based routing system
โ โโโ src/api/ # API client and integrations
โ โโโ src/types/ # TypeScript type definitions
โ โโโ src/hooks/ # Custom React hooks
โโโ ๐๏ธ database/ # SQL schema and seed data
โ โโโ init/ # Database initialization scripts
โโโ ๐ณ docker/ # Docker configuration files
โโโ ๐ docs/ # Project documentation
โโโ ๐ ๏ธ scripts/ # Development and deployment scripts
- Docker & Docker Compose
- Make (for convenience commands)
- Git (for cloning the repository)
# Clone the repository
git clone https://github.com/madebyaris/poinf-of-sales.git
cd poinf-of-sales
# Start everything with one command
make dev
# Open your browser
open http://localhost:3000# Development mode with hot reloading
make dev
# Individual service startup (for advanced users)
cd backend && go run main.go
cd frontend && npm run devIf you encounter Docker build errors, try these solutions:
# Clean up Go modules and rebuild
cd backend
go mod tidy
go mod download
cd ..
docker-compose down
docker-compose -f docker-compose.dev.yml up -d --build# Clean rebuild everything
make clean
make dev
# Or manually clean and rebuild
docker system prune -f
docker-compose down --volumes --remove-orphans
docker-compose -f docker-compose.dev.yml up -d --build# Fix file permissions
sudo chown -R $USER:$USER .
chmod -R 755 .- ๐ Restart Docker Desktop if you're on Windows/Mac
- ๐งน Clear Docker cache:
docker system prune -f - ๐ฆ Update dependencies: Run
go mod tidyin backend andnpm installin frontend - ๐ณ Rebuild containers: Use
--buildflag with docker-compose commands
๐ก Still having issues? Open a GitHub issue with your error logs!
We're expanding the POS system with native mobile applications to provide even better flexibility for restaurant operations:
Based on the project milestones, we're developing:
๐ณ Kitchen Staff Mobile App (iOS & Android)
- Target Devices: Tablets and TV screens for kitchen display
- Key Features: Touch-optimized kitchen interface, real-time order sync, offline support
- Status: ๐ Planned - Milestone created
- Timeline: 3-4 weeks development
๐จโ๐ผ Server Group Mobile App (iOS & Android)
- Target Devices: Smartphones and tablets for server staff
- Key Features: Mobile order taking, table management, payment processing
- Status: ๐ Planned - Milestone created
- Timeline: 3-4 weeks development
- ๐ฑ Native Performance - Smooth, responsive interfaces optimized for mobile devices
- ๐ Real-time Sync - Seamless integration with existing web-based POS system
- ๐ก Offline Support - Continue operations during network connectivity issues
- ๐จ Platform-Optimized UI - Native iOS and Android design patterns
- ๐บ Large Screen Support - Kitchen displays on wall-mounted TVs and tablets
๐ Track Progress: Follow development on our GitHub Milestones
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License - Free for commercial and personal use
โ
Commercial use โ
Modification โ
Distribution โ
Private use
- ๐ง Golang Community for the amazing ecosystem and performance
- โ๏ธ React Team for the incredible frontend framework
- ๐จ Tailwind CSS for making beautiful designs accessible
- ๐ TanStack for the powerful table and query libraries
- ๐งฉ shadcn/ui for the beautiful component system
- ๐ณ Docker for making deployment seamless
Built with โค๏ธ by developers, for developers
Ready to transform your restaurant operations? Get started today!
๐ Get Started โข ๐ Support the Project โข ๐ Documentation โข ๐ Report Issues