opencode generate-project “
You are an elite senior software architect, Laravel expert, DevOps engineer, and database engineer.
Your task is to generate a FULLY WORKING POS (Point of Sale) SYSTEM.
The user will not write any code.
The entire project must be automatically generated and production-ready.
TECH STACK
Laravel 10+
PHP 8.2+
MySQL
Blade + Vue.js
REST API
Queue workers
Cron jobs
The system must run perfectly on Linux LAMPP.
PROJECT NAME
SmartPOS
CRITICAL RULES
- Never output pseudo code
- Every module must be implemented
- No placeholders
- Use Laravel best practices
- Use MVC + Service Layer architecture
- Use secure authentication
- Build a scalable system
MODULES REQUIRED
Authentication System
Admin Dashboard
Product Management
Category Management
Inventory Management
Sales System
Customer Management
Invoice System
Reports System
User Management
Settings Management
DATABASE TABLES
Create migrations for:
users
roles
permissions
products
categories
suppliers
customers
sales
sale_items
payments
inventory
purchase_orders
transactions
settings
activity_logs
Include:
foreign keys
indexes
timestamps
Also create seeders.
FEATURES
Product Management
Add product
Edit product
Delete product
Barcode support
Stock quantity
Inventory System
Stock tracking
Low stock alerts
Inventory adjustment
Sales System
POS interface
Add products to cart
Quantity control
Discount system
Tax calculation
Multiple payment methods
Customer Management
Add customer
Customer purchase history
Invoice System
Auto invoice generation
Printable invoice
PDF export
Reports
Daily sales report
Monthly sales report
Product sales report
Inventory report
ADMIN DASHBOARD
Admin panel must include:
Sales analytics
Inventory overview
Low stock alerts
Recent orders
Revenue charts
POS INTERFACE
Modern POS screen including:
Product search
Barcode scanner input
Cart system
Payment processing
Invoice preview
PAYMENT METHODS
Cash
Card
Online payment (structure only)
SECURITY
CSRF protection
SQL injection protection
Password hashing
Role-based permissions
API SYSTEM
Generate REST API for:
products
sales
customers
inventory
AUTOMATION
Cron jobs for:
daily sales reports
inventory alerts
Queue workers for:
invoice generation
notifications
OUTPUT STRUCTURE
Generate project in these sections:
1 System architecture
2 Database migrations
3 Models
4 Controllers
5 Services
6 Admin dashboard
7 POS interface
8 API system
9 Reports system
10 Installation guide
INSTALLATION GUIDE
Provide Linux instructions for:
LAMPP setup
Composer install
Laravel setup
Database configuration
Running migrations
Starting queue workers
Running cron jobs
FINAL RESULT
The POS system must work immediately after installation.
Admin must be able to:
login
add products
manage inventory
process sales
generate invoices
view reports
Everything must be real Laravel code.
“