Lager Guru - Complete Documentation β
Official documentation for Lager Guru WMS - Enterprise-grade warehouse management and transport orchestration system with multi-tenant SaaS architecture.
π Live Documentation: https://docs-lager-guru.hashmatrix.de/
Table of Contents β
- Overview
- Quick Start
- Features
- Technology Stack
- Architecture
- Installation & Setup
- Enterprise Modules
- Multi-Tenant Architecture
- SSO Integration
- API Reference
- Deployment
- CI/CD
- Troubleshooting
- Changelog
- Resources
Overview β
Lager Guru is a comprehensive warehouse management system (WMS) designed for modern logistics operations. It provides real-time inventory tracking, intelligent routing, automated picking workflows, and complete visibility into warehouse operations.
What is Lager Guru? β
Lager Guru is a Progressive Web Application (PWA) that combines:
- Warehouse Management: Complete inventory tracking, pick & pack operations, zone management
- Transport Orchestration: Driver assignment, GPS tracking, route optimization
- Multi-Tenant SaaS: Complete tenant isolation with Row-Level Security (RLS)
- Enterprise Features: SSO integration, advanced analytics, AI-powered optimization
Key Benefits β
- β Real-time Updates: Supabase Realtime for live data synchronization
- β PWA Support: Installable, offline-capable progressive web application
- β Multi-Tenant: Complete data isolation with RLS policies
- β Enterprise SSO: OIDC/SAML integration for enterprise authentication
- β AI-Powered: Intelligent routing, slotting optimization, and auto-assignment
- β Scalable: Built on Supabase for automatic scaling
- β Modern Stack: React 18, TypeScript, Vite
Quick Start β
Prerequisites β
- Node.js 18+
- npm or yarn
- Supabase account
- Docker (for deployment)
Installation β
# Clone repository
git clone https://github.com/Pepinko81/lager-guru.git
cd lager-guru
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your Supabase credentials
# Start development server
npm run devDevelopment Commands β
# Run development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Generate documentation
npm run docs:dev
npm run docs:buildFeatures β
Core Functionality β
Multi-Role System β
- Admin: Full system access, tenant management
- Tenant Admin: Full tenant access, user management
- Tenant User: Standard operations, limited admin
- Inventory Worker: Inventory, Pick & Pack, Floor Plan (view)
- Maintenance Worker: Maintenance, Equipment Tracking
- Driver: Shipment status, safety warnings
Real-time Updates β
- Supabase Realtime for live data synchronization
- WebSocket-based updates
- Automatic UI refresh on data changes
PWA Support β
- Installable on mobile and desktop
- Offline-capable with service workers
- Push notifications support
- App-like experience
Barcode Scanning β
- Camera-based barcode scanning
- Quick order lookup
- Inventory item identification
- Web-based scanning API
GPS Tracking β
- Live driver location tracking
- Interactive map visualization
- Real-time position updates
- Route history
AI Suggestions β
- Intelligent driver assignment
- Zone assignment recommendations
- Multi-factor scoring (distance, capacity, availability)
Shift Management β
- Weekly/monthly shift scheduling
- Shift templates
- Automatic status sync
- Shift hours analytics
Analytics β
- Real-time KPIs
- Advanced reporting
- Shift hours tracking
- Performance metrics
Enterprise Modules β
Inventory / Stock Management β
- Real-time stock tracking with complete audit trail
- Zone-based inventory organization
- Low stock alerts and automated reordering
- Barcode scanning integration
- Stock movement history (inbound, outbound, transfer, adjustment)
Pick & Pack β
- Automated pick list generation
- Optimal route calculation using zone coordinates
- Real-time picking progress tracking
- Pack session management
- Integration with inventory for automatic stock updates
Warehouse Floor Plan β
- Interactive SVG-based floor plan editor
- Real-time zone utilization heatmaps
- Driver and equipment location tracking
- Safety overlay visualization
- Pick route visualization
Slotting Optimization AI β
- AI-driven zone placement recommendations
- Movement velocity analysis
- Turnover rate optimization
- Congestion factor calculation
- Heatmap-based zone utilization
Auto Assignment Engine β
- Intelligent driver-to-shipment matching
- Multi-factor scoring (distance, capacity, availability)
- Zone-based assignment optimization
- Real-time assignment suggestions
- Manual override capabilities
Maintenance Module β
- Equipment maintenance scheduling
- Task tracking and completion
- Maintenance history and analytics
- Preventive maintenance alerts
- Integration with equipment tracking
Safety & Compliance β
- Incident reporting and tracking
- Safety zone visualization
- Compliance checklist management
- Analytics and reporting
- Integration with warehouse map
Equipment Tracking β
- QR/RFID/manual equipment location tracking
- Real-time equipment status
- Location history
- Integration with floor plan visualization
Technology Stack β
Frontend β
- React 18 - UI library with latest features
- TypeScript - Type safety and better DX
- Vite - Fast build tool and dev server
- shadcn/ui - High-quality component library
- Tailwind CSS - Utility-first CSS framework
- React Router v6 - Client-side routing
- Framer Motion - Smooth animations
- Recharts - Data visualization
- MapLibre GL - Interactive maps
- @zxing/browser - Barcode scanning
Backend β
- Supabase - Backend-as-a-Service
- PostgreSQL database
- Realtime subscriptions (WebSocket)
- Authentication (JWT)
- Row-Level Security (RLS)
- Edge Functions (Deno)
- Storage (file uploads)
Deployment β
- Docker - Containerization
- Nginx - Web server and reverse proxy
- GitHub Actions - CI/CD automation
- GitHub Container Registry - Docker image hosting
Build Tools β
- Vite - Module bundler
- TypeScript - Type checking
- ESLint - Code linting
- Workbox - Service worker generation
Architecture β
System Architecture β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Client (Browser) β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β React App β β Service β β PWA β β
β β (Vite) β β Worker β β Manifest β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
β HTTPS
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Supabase Backend β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β PostgreSQL β β Realtime β β Auth β β
β β Database β β Subscriptionsβ β (JWT) β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β ββββββββββββββββ ββββββββββββββββ β
β β Edge β β Storage β β
β β Functions β β (Files) β β
β ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββProject Structure β
lager-guru/
βββ src/
β βββ components/ # React components
β β βββ admin/ # Admin-specific components
β β βββ dashboard/ # Dashboard components
β β βββ worker/ # Worker components
β β βββ ui/ # Reusable UI components
β βββ contexts/ # React context providers
β βββ hooks/ # Custom React hooks
β βββ integrations/ # External service integrations
β βββ lib/ # Utility functions
β βββ pages/ # Page components
β βββ config/ # Configuration
βββ supabase/
β βββ migrations/ # Database migrations
β βββ functions/ # Edge Functions
βββ docs/ # Documentation (VitePress)
βββ public/ # Static assets
βββ scripts/ # Build and utility scriptsData Flow β
Authentication Flow β
- User logs in via Supabase Auth
- JWT token stored in browser
- Token sent with all API requests
- RLS policies enforce access control
Real-time Updates β
- Client subscribes to Supabase Realtime channels
- Database changes trigger events
- Client receives updates via WebSocket
- UI updates automatically
State Management β
- React Context - Global state (auth, branding)
- React Query - Server state caching
- Local State - Component-specific state
- Supabase Realtime - Real-time synchronization
Security Model β
- Row-Level Security (RLS): Database-level tenant isolation
- JWT Authentication: Secure token-based auth
- Tenant Context: Automatic tenant filtering
- Service Role: Secure backend operations only
- SSO Integration: Enterprise identity providers
Installation & Setup β
Local Development Setup β
Clone the repository
bashgit clone https://github.com/Pepinko81/lager-guru.git cd lager-guruInstall dependencies
bashnpm installConfigure environment variables
bashcp .env.example .envEdit
.envwith your Supabase credentials:envVITE_SUPABASE_URL=https://your-project.supabase.co VITE_SUPABASE_PUBLISHABLE_KEY=your-anon-key VITE_WEB_PUSH_PUBLIC_KEY=your-vapid-public-keyStart development server
bashnpm run devAccess the application
- Open
http://localhost:5173in your browser
- Open
Production Build β
# Build for production
npm run build
# Preview production build
npm run previewDatabase Setup β
Create Supabase project
- Go to supabase.com
- Create a new project
- Note your project URL and anon key
Run migrations
bash# Using Supabase CLI supabase db push # Or manually via Supabase dashboard # Copy SQL from supabase/migrations/ and run in SQL editorConfigure RLS policies
- RLS policies are included in migrations
- Verify policies are active in Supabase dashboard
Enterprise Modules β
Inventory / Stock Management β
Complete enterprise-grade inventory tracking and stock movement management.
Features:
- Master data management (SKU, name, description)
- Real-time quantity tracking
- Stock movement audit trail (inbound, outbound, adjustment, transfer)
- Low stock warnings
- Zone-based organization
- Barcode scanning integration
Database Tables:
inventory_items- Item master datastock_movements- Complete audit trail
Key Functions:
- Create/update/delete items
- Record stock movements
- Query low stock items
- Get movement history
Pick & Pack β
Enterprise WMS-style picking and packing with optimal route calculation.
Features:
- Automated pick list generation
- Optimal route calculation using zone coordinates
- Real-time picking progress tracking
- Pack session management
- Integration with inventory for automatic stock updates
Database Tables:
pick_lists- Pick list masterpick_list_items- Items to pickpack_sessions- Packing operations
Key Functions:
- Create pick list from orders
- Calculate optimal pick route
- Track picking progress
- Complete pack session
Warehouse Floor Plan β
SVG-based zone layout visualization with real-time updates.
Features:
- Interactive SVG-based floor plan editor
- Real-time zone utilization heatmaps
- Driver and equipment location tracking
- Safety overlay visualization
- Pick route visualization
Key Functions:
- Edit floor plan layout
- Visualize zone utilization
- Track equipment locations
- Display safety zones
Slotting Optimization AI β
AI-driven zone placement recommendations based on movement patterns.
Features:
- Zone suitability scoring
- Movement velocity analysis
- Reorganization recommendations
- Heatmap generation
- Impact score calculation
Key Functions:
- Analyze movement patterns
- Calculate zone suitability
- Generate recommendations
- Estimate impact of changes
Auto Assignment Engine β
Intelligent driver-to-shipment matching with multi-factor scoring.
Features:
- Multi-factor driver scoring (distance, capacity, availability)
- Zone-based optimization
- Distance-based routing
- Capacity consideration
- Real-time suggestions
Key Functions:
- Score drivers for shipments
- Suggest optimal assignments
- Consider zone proximity
- Factor in driver capacity
Maintenance Module β
Equipment maintenance tracking and scheduling.
Features:
- Equipment maintenance scheduling
- Task tracking and completion
- Maintenance history and analytics
- Preventive maintenance alerts
- Integration with equipment tracking
Database Tables:
maintenance_tasks- Maintenance tasksmaintenance_history- Completed tasks
Safety & Compliance β
Incident reporting and safety zone management.
Features:
- Incident reporting and tracking
- Safety zone visualization
- Compliance checklist management
- Analytics and reporting
- Integration with warehouse map
Database Tables:
safety_incidents- Incident recordssafety_zones- Safety zone definitions
Equipment Tracking β
QR/RFID/manual equipment location tracking.
Features:
- Location tracking (QR/RFID/manual)
- Real-time status
- History tracking
- Floor plan integration
Database Tables:
equipment- Equipment master dataequipment_locations- Location history
Multi-Tenant Architecture β
Overview β
Lager Guru implements a comprehensive multi-tenant SaaS architecture that allows multiple organizations (tenants) to use the same application instance while maintaining complete data isolation and security.
Core Principles β
- Tenant ID Everywhere: All business data tables include
tenant_id - RLS Enforcement: Database-level security policies enforce tenant isolation
- Automatic Filtering: Application code automatically filters by tenant
- Service Role Bypass: Background jobs use service role to bypass RLS when needed
Key Components β
Tenant Table β
id: Unique tenant identifier (UUID)name: Tenant/organization namecompany: JSONB field for additional company metadataactive: Whether the tenant is active
Tenant Users Table β
tenant_id: Reference to tenantuser_id: Reference to user profilerole: Eithertenant_adminortenant_user- Unique constraint on
(tenant_id, user_id)
Data Isolation Strategy β
Row-Level Security (RLS) β
RLS policies automatically filter queries based on the authenticated user's tenant:
-- Example: Users can only see their tenant's shipments
CREATE POLICY shipments_tenant_isolation ON shipments
FOR SELECT
USING (
tenant_id IN (
SELECT tenant_id FROM tenant_users
WHERE user_id = auth.uid()
)
);Application-Level Filtering β
The application code automatically includes tenant filtering:
// Automatically filters by current user's tenant
const { data } = await supabase
.from('shipments')
.select('*')
// tenant_id is automatically filtered by RLSUser Roles β
Super Admin β
- Role:
admininuser_rolestable - Access: Can see and manage ALL tenants
- Use Case: Platform administrators
Tenant Admin β
- Role:
tenant_adminintenant_userstable - Access: Full access to their tenant's data
- Use Case: Organization administrators
Tenant User β
- Role:
tenant_userintenant_userstable - Access: Read/write access to their tenant's data (with module-specific restrictions)
- Use Case: Regular employees
Tenant Lifecycle β
- Creation: Super admin creates new tenant
- User Assignment: Users are assigned to tenant via
tenant_users - Data Isolation: All data automatically scoped to tenant
- Deactivation: Tenant can be deactivated without data deletion
- Deletion: Cascade deletion removes all tenant data (if needed)
Security Guarantees β
- Database-Level: RLS policies prevent cross-tenant queries
- Application-Level: Code always includes tenant context
- Service Role: Only used for background jobs, never for user requests
- Audit Trail: All operations logged with tenant context
Performance Considerations β
- Indexes:
tenant_idcolumns are indexed for fast filtering - Query Optimization: RLS policies use efficient subqueries
- Caching: Tenant context cached in application state
- Batch Operations: Service role used for bulk operations
SSO Integration β
OpenID Connect (OIDC) β
Enterprise SSO support via OpenID Connect protocol.
Configuration Steps β
Obtain OIDC Provider Information
- Issuer URL
- Client ID
- Client Secret
- Metadata URL (optional)
Configure in Lager Guru
- Navigate to System Settings β SSO Integration
- Add new OIDC provider
- Enter provider details
- Toggle Active to enable
Configure Redirect URI in OIDC Provider
https://your-domain.com/auth/callback/oidc?provider_id={provider_id}&tenant_id={tenant_id}
Authentication Flow β
- User clicks "Mit Unternehmens-SSO anmelden" on login page
- User is redirected to OIDC provider's authorization endpoint
- User authenticates with OIDC provider
- OIDC provider redirects back to Lager Guru with authorization code
- Lager Guru exchanges code for tokens
- User information is extracted from ID token
- User is automatically provisioned into tenant (if new)
- User is signed in and redirected to dashboard
User Provisioning β
When a user logs in via SSO for the first time:
- A user account is automatically created in Lager Guru
- The user is assigned to the tenant that initiated the SSO flow
- Default role:
tenant_user(can be changed by tenant admin)
Security Considerations β
- State Parameter: OIDC flow uses state parameter to prevent CSRF attacks
- PKCE: Authorization Code flow with PKCE is used for enhanced security
- Token Validation: All tokens are validated against the OIDC provider
- Tenant Isolation: Users can only be provisioned into the tenant that initiated the SSO flow
SAML Integration β
Enterprise SSO support via Security Assertion Markup Language (SAML) protocol.
Configuration Steps β
Obtain SAML Provider Information
- Entity ID / Issuer
- SSO URL
- Certificate (X.509)
- Attribute mappings
Configure in Lager Guru
- Navigate to System Settings β SSO Integration
- Add new SAML provider
- Enter provider details
- Configure attribute mappings
- Toggle Active to enable
Configure Assertion Consumer Service (ACS) URL in SAML Provider
https://your-domain.com/auth/callback/saml?provider_id={provider_id}&tenant_id={tenant_id}
Supported Providers β
- Azure AD
- Okta
- Auth0
- Keycloak
- Any OIDC/SAML-compliant identity provider
API Reference β
Overview β
Complete TypeScript API documentation for Lager Guru. All APIs are built on top of Supabase client with automatic tenant filtering via RLS.
Hooks β
Custom React hooks for authentication, branding, and data management.
useAuth() β
Authentication hook providing user and role information.
import { useAuth } from '@/contexts/AuthContext';
function MyComponent() {
const { user, userRole, isLoading } = useAuth();
// ...
}useBranding() β
Branding hook for tenant-specific branding.
import { useBranding } from '@/contexts/BrandingContext';
function MyComponent() {
const { branding } = useBranding();
// ...
}Context Providers β
React context providers for global state management.
- AuthContext: User authentication and role management
- BrandingContext: Tenant-specific branding configuration
Integrations β
External service integrations including Supabase client setup.
Supabase Client β
import { supabase } from '@/integrations/supabase/client';
// Query with automatic tenant filtering
const { data, error } = await supabase
.from('shipments')
.select('*')
.eq('status', 'pending');Utilities β
Utility functions and helpers for common operations.
Inventory Functions β
import { createItem, updateItem, recordMovement } from '@/lib/inventory';
// Create inventory item
const { data, error } = await createItem({
sku: 'ITEM-001',
name: 'Sample Product',
zone_id: 'zone-uuid',
min_quantity: 10,
});Pick & Pack Functions β
import { createPickList, calculateRoute } from '@/lib/pickpack';
// Create pick list
const { data, error } = await createPickList({
items: [
{ item_id: 'item-uuid', qty: 5 },
],
});Code Examples β
See API Reference Documentation for detailed examples and full API documentation.
Deployment β
Overview β
Lager Guru is deployed using Docker and Nginx for production environments.
Prerequisites β
- Docker and Docker Compose installed
- Nginx installed (for reverse proxy)
- Domain name configured
- SSL certificate (for HTTPS)
Docker Deployment β
Build and Run β
# Build Docker image
docker build -t lager-guru:latest .
# Or use docker-compose
docker compose up -d --buildEnvironment Variables β
Create a .env file:
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=your-anon-key
VITE_WEB_PUSH_PUBLIC_KEY=your-vapid-public-keyHealth Check β
After deployment, verify the application is running:
curl http://localhost/health.htmlNginx Configuration β
Basic Configuration β
See deploy/nginx.conf for basic configuration with:
- Security headers
- SPA routing support
- Internal network restrictions
Production Configuration β
For production, use deploy/nginx-lager-guru.hashmatrix.de.conf which includes:
- SSL/TLS configuration
- Domain-specific settings
- Optimized caching
Setup Steps β
Copy configuration file:
bashsudo cp deploy/nginx-lager-guru.hashmatrix.de.conf /etc/nginx/sites-available/lager-guruCreate symbolic link:
bashsudo ln -s /etc/nginx/sites-available/lager-guru /etc/nginx/sites-enabled/Test configuration:
bashsudo nginx -tReload Nginx:
bashsudo systemctl reload nginx
SSL/TLS Setup β
Using Certbot (Let's Encrypt) β
# Install Certbot
sudo apt-get install certbot python3-certbot-nginx
# Obtain certificate
sudo certbot --nginx -d your-domain.com
# Auto-renewal is configured automaticallyMonitoring β
Health Checks β
Monitor the health endpoint:
curl http://your-domain.com/health.htmlLogs β
View Docker logs:
docker compose logs -f lager-guruView Nginx logs:
sudo tail -f /var/log/nginx/error.logSecurity Checklist β
- [ ] HTTPS enabled with valid SSL certificate
- [ ] Security headers configured
- [ ] Environment variables secured
- [ ] Database credentials protected
- [ ] Firewall rules configured
- [ ] Regular backups scheduled
- [ ] Monitoring and alerting set up
CI/CD β
Overview β
Lager Guru uses GitHub Actions for continuous integration and deployment.
CI Pipeline β
Triggers β
- Push to
mainordevelopbranches - Pull requests to
mainordevelop
Steps β
- Checkout code
- Setup Node.js 18
- Install dependencies (
npm ci) - TypeScript check
- ESLint
- Security audit
- Build
- Upload artifacts
CD Pipeline β
Triggers β
- Push of version tag (e.g.,
v1.0.0)
Steps β
- Build Docker image (multi-stage build)
- Push to GitHub Container Registry (GHCR)
- Deploy to server (SSH deployment)
- Health check
Creating a Release β
Update version in code
Create git tag:
bashgit tag -a v1.0.0 -m "Release version 1.0.0" git push origin v1.0.0GitHub Actions automatically:
- Builds Docker image
- Pushes to GHCR
- Deploys to production
- Runs health checks
Required Secrets β
CI Secrets β
VITE_SUPABASE_URL(optional)VITE_SUPABASE_PUBLISHABLE_KEY(optional)
CD Secrets β
VITE_SUPABASE_URLVITE_SUPABASE_PUBLISHABLE_KEYVITE_WEB_PUSH_PUBLIC_KEY(optional)SSH_HOSTSSH_USERSSH_KEY
Docker Images β
Image Tags β
ghcr.io/<owner>/lager-guru:<git-sha>- Commit SHAghcr.io/<owner>/lager-guru:latest- Latestghcr.io/<owner>/lager-guru:<version>- Version tag
Pulling Images β
docker pull ghcr.io/<owner>/lager-guru:latestTroubleshooting β
CI Failures β
- Check TypeScript errors
- Review ESLint warnings
- Verify build process
- Check dependency issues
CD Failures β
- Verify SSH credentials
- Check server connectivity
- Review deployment logs
- Verify Docker setup on server
Troubleshooting β
Common Issues β
Application Won't Start β
Symptoms: Container fails to start or crashes immediately
Solutions:
- Check Docker logs:
docker compose logs lager-guru - Verify environment variables in
.env - Check port availability:
netstat -tulpn | grep 80 - Verify Docker daemon:
docker ps
Database Connection Errors β
Symptoms: "Failed to connect to Supabase" or authentication errors
Solutions:
- Verify
VITE_SUPABASE_URLandVITE_SUPABASE_PUBLISHABLE_KEYin.env - Check Supabase project status
- Verify network connectivity
- Check RLS policies allow access
Real-time Updates Not Working β
Symptoms: Changes don't appear without refresh
Solutions:
- Check Supabase Realtime is enabled
- Verify WebSocket connection in browser console
- Check RLS policies allow SELECT
- Verify subscription channels are correct
Barcode Scanner Not Working β
Symptoms: Camera doesn't open or scanning fails
Solutions:
- Verify HTTPS is enabled (required for camera access)
- Check browser permissions for camera
- Test on different device/browser
- Check console for errors
GPS Tracking Not Working β
Symptoms: Driver locations not updating
Solutions:
- Verify location permissions granted
- Check HTTPS is enabled
- Verify
driver_locationstable exists - Check RLS policies for
driver_locations
Build Failures β
Symptoms: npm run build fails
Solutions:
- Clear node_modules:
rm -rf node_modules && npm install - Check TypeScript errors:
npx tsc --noEmit - Verify all dependencies installed
- Check for syntax errors
Performance Issues β
Symptoms: Slow page loads or laggy UI
Solutions:
- Check network tab for slow requests
- Verify database queries are optimized
- Check for memory leaks
- Review RLS policy performance
- Enable service worker caching
Error Messages β
"useAuth must be used within an AuthProvider" β
Cause: Component using useAuth outside of AuthProvider
Solution: Wrap component tree with AuthProvider
"Row-level security policy violation" β
Cause: RLS policy blocking access
Solution:
- Check user role
- Verify RLS policy conditions
- Check table permissions
"Failed to fetch" β
Cause: Network error or CORS issue
Solution:
- Check network connectivity
- Verify Supabase URL is correct
- Check CORS settings in Supabase
- Verify API endpoint exists
Debugging Tips β
Enable Debug Logging β
Add to browser console:
localStorage.setItem('debug', 'true')Check Supabase Connection β
import { supabase } from '@/integrations/supabase/client'
const { data, error } = await supabase.from('shipments').select('*').limit(1)
console.log('Connection test:', { data, error })Monitor Realtime Subscriptions β
const channel = supabase.channel('test')
.on('postgres_changes', { event: '*', schema: 'public', table: 'shipments' },
(payload) => console.log('Realtime event:', payload)
)
.subscribe()Getting Help β
Check Logs β
Docker logs:
docker compose logs -f lager-guruNginx logs:
sudo tail -f /var/log/nginx/error.logBrowser console: Open DevTools (F12)
Resources β
- Troubleshooting Guide - Detailed troubleshooting
- Runbook - Operational procedures
- Maintenance Guide - Maintenance checklist
- GitHub Issues
Changelog β
[Unreleased] β
Added β
- Documentation site deployment preparation
- Standalone VitePress documentation build
Changed β
- Documentation structure reorganized for standalone deployment
[1.0.0] - 2025-01-XX β
Added β
- Initial release of Lager Guru WMS
- Multi-tenant architecture with Row-Level Security
- Enterprise SSO support (OIDC/SAML)
- Inventory & Stock Management
- Pick & Pack module
- Warehouse Floor Plan visualization
- Slotting Optimization AI
- Maintenance Module
- Safety & Compliance tracking
- Equipment Tracking (QR/RFID)
- Auto Assignment Engine
- Routing Engine with 3D coordinates
- Real-time analytics and KPIs
- PWA support with offline capabilities
For detailed feature documentation, see the Getting Started Guide.
Resources β
Documentation β
- Live Documentation: https://docs-lager-guru.hashmatrix.de/
- Main README: README.en.md
- Installation Guide: INSTALLATION.bg.md
- Runbook: RUNBOOK.en.md
- Maintenance Guide: MAINTENANCE.en.md
Quick Links β
- Architecture Overview
- Product Overview
- Multi-Tenant Setup
- RLS Guide
- API Reference
- Edge Functions
- Deployment Guide
- SSO Setup (OIDC/SAML)
- Changelog
Support β
For issues and questions:
- Check Troubleshooting Guide
- Review Runbook
- Open an issue on GitHub
Contributing β
When adding new features or components:
- Add JSDoc comments to your TypeScript/React code
- Update relevant documentation in the
docs/folder - Run documentation generation:
npm run docs:generate - Preview changes:
npm run docs:dev
Last updated: 2025-12-01
Copyright Β© 2025 HashMatrix
Released under Commercial License