Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ency07/B2B-import/llms.txt

Use this file to discover all available pages before exploring further.

B2B Import ERP is a production-ready, multi-tenant enterprise resource planning platform built with Next.js 16, Supabase, and PostgreSQL. It covers the full commercial and operational lifecycle — from lead capture and pre-engineering diagnostics through quotes, jobs, invoices, and post-sale warranties — all with strict tenant data isolation via Row-Level Security.

Quickstart

Deploy your first tenant and explore the ERP in under 10 minutes.

Architecture

Understand the layered architecture, stack choices, and module boundaries.

Multi-Tenancy

Learn how tenant isolation works at the database level with RLS policies.

RBAC & Roles

Nine predefined roles with granular per-module permission matrices.

What’s Inside

The platform is organized into modules that map directly to business processes. Each module has its own database migrations, server actions, and dashboard UI.

Clients & CRM

Manage companies, contacts, and the full prospect-to-active lifecycle.

Requirements

Capture and route technical requirements from field visit to quote.

Quotes

Multi-version quotations with line items, approval workflows, and PDF export.

Jobs & Work Orders

Schedule, assign, and close field service work orders with activity tracking.

Inventory

SKU catalog, stock movements, purchase orders, and reorder alerts.

Invoices & Payments

Generate invoices and process payments via the Wompi gateway with webhooks.

Key Platform Capabilities

Pre-Engineering Wizard

A public-facing CFM calculator and lead intake wizard — no AI, fully deterministic.

White Label

Every visual element is tenant-configurable: logos, colors, PDFs, and email templates.

Integrations

Connect email, WhatsApp, Telegram, SMS, AI providers, and payment gateways.

Audit & Security

Every state change is logged with user, tenant, IP, and before/after values.

Getting Started

1

Clone and install dependencies

Clone the repository and install Node.js dependencies with your preferred package manager.
2

Configure Supabase

Create a Supabase project, set your environment variables, and run the database migrations.
3

Seed master data

Run the seed migration to populate tenant, user, and role fixtures for development.
4

Start the dev server

Run npm run dev and open the dashboard at http://localhost:3000/dashboard?tenant=acme.
The full deployment walkthrough — including environment variables, migration order, and tenant provisioning — is covered in the Quickstart guide.

Build docs developers (and LLMs) love