Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enterprise Multi-Tenant SaaS Platform

Screenshot 1

An industry-grade, high-performance, and mathematically isolated multi-tenant architecture designed for B2B SaaS provisioning. Built with Java 21 Virtual Threads and Next.js 14, this platform provides definitive data boundaries, rapid execution, and a premium engineering console interface.

Architecture Overview

Screenshot 2

This platform utilizes a strictly decoupled, highly scalable architecture:

  • Backend (Core Services): Spring Boot 3 operating on Java 21, leveraging Project Loom (Virtual Threads) for unprecedented concurrent request handling.
  • Frontend (Edge UI): Next.js 14 (App Router) heavily optimized with Framer Motion and Tailwind CSS, executing an intricate, strictly-typed React component tree.
  • Database (Persistence): MongoDB Atlas with dynamic schematic routing and automated field-level tenant mappings.

Key Features

Screenshot 3

  • Strict Data Isolation: Custom TenantInterceptor and TenantEntityCallback mathematically guarantee data segregation at the Spring Data ORM level. Cross-tenant data bleed is impossible by design.
  • Virtual Thread Concurrency: Powered by Java 21, the backend processes thousands of concurrent authentication and data retrieval requests without traditional thread-pool bottlenecks.
  • Stateless JWT Authentication: Secure, scalable token-based identity mapping managed seamlessly via Axios interceptors and Zustand persistent state.
  • Automated Provisioning Matrix: Self-serve logical workspace generation allowing new tenants to register, instantiate their schema, and traverse the secure environment instantly.
  • Premium Engineering Console UI: A precision-coded interface built with customized #212121 (Charcoal) and #B87333 (Brushed Copper) geometry, delivering an elite technical aesthetic.

Screenshot 4 Screenshot 5

Getting Started

Prerequisites

  • Java 21 (JDK 21+)
  • Node.js (v18.17+)
  • MongoDB Atlas (Active Cluster URI)

1. Backend Initialization

Configure your MongoDB connection in the backend application properties before launching the server.

cd backend
# Modify src/main/resources/application.properties -> spring.data.mongodb.uri
./mvnw spring-boot:run

(Alternatively, execute the ./run-backend.ps1 script if operating on Windows)

2. Frontend Initialization

The frontend edge server expects the backend to be actively running on its default API port.

cd frontend
npm install
npm run dev

The enterprise terminal will launch at http://localhost:3000.

Comprehensive Documentation

Deep-dive architectural documentation has been generated for every core file, component, and configuration mapping natively inside the application.

To view the definitive project explanation:

  1. Navigate to the project-explain/ directory at the repository root.
  2. Open index.html in any modern web browser to access the dynamic, styled markdown viewer detailing all 25 structural files.

About

An industry-grade, multi-tenant B2B SaaS architecture featuring data isolation. Built with Java 21 (Virtual Threads), Spring Boot 3, Next.js 14, and MongoDB Atlas to provide highly concurrent, secure enterprise provisioning. This is the first version v1.0 and contains the architecture implementation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages