ERP B2B Premium is a production-ready, multi-tenant B2B ERP platform for industrial services companies. It ships with a public-facing marketing site and lead-generation wizard, a full ERP dashboard covering CRM, work orders, inventory, and invoicing, plus white-label branding per tenant — all enforced by Supabase Row Level Security at the database level.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ency07/B2B/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Understand the platform architecture, key features, and tech stack before you start.
Quickstart
Clone the repo, configure environment variables, and run the app locally in minutes.
Architecture Overview
Bounded contexts, multi-tenancy strategy, and how the public and ERP layers interact.
Environment Setup
Full reference for all environment variables across dev, staging, and production.
Explore by Area
Lead Wizard
5-step pre-engineering funnel that auto-calculates CFM and creates CRM records.
Product Catalog
Public industrial catalog with hierarchical categories and technical specs.
ERP Dashboard
Role-adaptive KPIs, audit log, and operations health for every user role.
Clients & Leads
B2B client management, CRM pipeline, and lead scoring.
Inventory
Multi-warehouse stock tracking with movement entries and reorder alerts.
Invoicing
Invoice lifecycle from draft to paid, with line items and payment tracking.
Developer Reference
Server Actions Reference
Full API surface for all Server Actions: clients, jobs, inventory, invoices, settings.
Engineering Engine
ASHRAE-based CFM calculation and detailed pre-engineering report generation.
Deployment Guide
Deploy to Vercel, Docker, or bare Node.js with environment variable setup.
Database Migrations
Supabase migration workflow, RLS strategy, and production deployment checklist.
Configure environment
Copy
.env.example to .env.local and fill in your Supabase project URL, anon key, and service role key.Run migrations
Apply Supabase migrations with
npx ts-node scripts/deploy-migrations.ts against your local or cloud project.