Academic Program: Advanced Java Project-Based Learning (PBL) — 5th Semester
Architecture: Distributed Modular Spring Boot 3 & Enterprise Architecture
Unified Integration Branch: main
Important
🔗 Direct Link: https://drive.google.com/drive/folders/1km01tHR9SJw4qXtE625iC_X_o4L3dAlD?usp=sharing
Access all essential academic and evaluation deliverables in one click:
- 📊 Presentation (PPT): Full project defense presentation slide deck
- 📄 Research Paper: Legal AI analysis, Vision OCR methodology & benchmarking
- 📘 Main Project Report: Complete 5th-Semester PBL final project report
- 👤 Personal Reports: Individual student module contribution reports
- 🔑 Demo Credentials: System test accounts and evaluator credentials
- 📑 All Important Docs: SRS, UML diagrams, test data, and technical specifications
🚀 Live Production Deployment: https://lexadvisor.onrender.com
The system is live and globally accessible. Anyone can test contractual document upload, Vision OCR extraction, 13-rule legal risk scoring, and audit reports directly in the browser without local setup.
| Member | Module | Key Deliverables |
|---|---|---|
| Gourav Nagori | Document Ingestion & Processing | Apache PDFBox, Apache POI DOCX, Plaintext parsers, Groq Multimodal Vision OCR, File storage lifecycle |
| Ayush Rathore | User, Auth & Case Management | Spring Security 6, Stateless JWT Provider, BCrypt hashing, Multi-tenant Case Management & ownership isolation |
| Dilip Kumawat | Legal Analysis & Risk Detection Engine | 13-Rule Risk Detection Engine, Clause segmentation, Severity Matrix (LOW/MED/HIGH/CRITICAL), Risk score scoring |
| Harshvardhan Bhatt | Audit Reports & Analytics | Audit Report Compiler, Real-time Dashboard KPI Aggregator, Apache PDFBox Legal Audit Report Exporter |
| Abhishi Samar | System Architecture & UML Modeling | UML Class & Component Diagrams, State Transition models, SRS System flow verification |
The application is deployed on Render Cloud and is globally accessible:
- Official Live Website: https://lexadvisor.onrender.com
| Portal | Live Link | Description |
|---|---|---|
| 🏠 Landing & Ingestion Portal | lexadvisor.onrender.com | Main landing desk, interactive contract demo, document upload & Vision OCR |
| 🔐 Authentication Gateway | lexadvisor.onrender.com/auth.html | Secure registration and user login with stateless JWT authentication |
| 📁 Workspace & Case Review | lexadvisor.onrender.com/workspace.html | Multi-case management, clause inspector & interactive risk findings |
| 📊 Executive Admin & Audit Desk | lexadvisor.onrender.com/admin.html | Real-time KPI analytics, audit report compilation & downloadable PDFs |
[Client Web Browser (HTML5 / Glassmorphic UI)]
│
├──► /api/auth/** ──► [AuthService & JWT Token Provider] ──► [H2 / JPA User Repository]
├──► /api/cases/** ──► [CaseService (Multi-tenant)] ──► [H2 / JPA Case Repository]
├──► /api/documents/** ──► [DocumentService & Groq OCR] ──► [MongoDB Document Repository]
├──► /api/analysis/** ──► [Dilip's Risk Scoring Engine] ──► [MongoDB Analysis & Risk Repositories]
└──► /api/reports/** ──► [ReportService & PDF Exporter] ──► [MongoDB Report & Analytics Repositories]
- 📁 Google Drive Project Repository: Google Drive Deliverables & Reports Folder
- UML Diagram:
Legal Document Analysis System UML Diagram.png - Software Requirements Specification:
docs/Software_Requirements_Specification.md - Ayush Module Documentation:
docs/AYUSH_MODULE_SPECIFICATION.md - Reports & Analytics Specification:
docs/REPORTS_AND_ANALYTICS_MODULE.md
| Deliverable | Description | Link |
|---|---|---|
| 📊 Project Presentation (PPT) | Comprehensive slide deck detailing architecture, module distribution, live demo walkthrough, and evaluation metrics | Open in Drive |
| 📄 Research Paper | Research manuscript detailing the multimodal Vision OCR pipeline, 13-rule risk engine, and comparative legal analysis | Open in Drive |
| 📘 Main Project Report | Complete 5th-Semester PBL technical engineering report covering SDLC, SRS, design, testing, and deployment | Open in Drive |
| 👤 Personal Module Reports | Individual student submission reports covering respective module implementation, code snippets, and outcomes | Open in Drive |
| 🔑 Demo Credentials & Test Guide | Pre-configured evaluation accounts, sample legal contracts (PDF/DOCX/Scanned images), and testing cheat sheet | Open in Drive |
| 📑 All Important Docs | SRS specifications, high-resolution UML diagrams, schema definitions, and academic rubrics | Open in Drive |
Note: You can immediately experience the live cloud application at https://lexadvisor.onrender.com without setting up a local environment.
- JDK 21 installed and configured
- Apache Maven 3.9+
# Clone the repository
git clone https://github.com/gouravnagori/Java-PBL.git
cd Java-PBL
# Build the project
mvn clean install
# Run the Spring Boot application
mvn spring-boot:runOnce started, the application will be live locally at:
- Web Application Portal: http://localhost:8080
- Authentication & Security Portal: http://localhost:8080/auth.html
- Case Management Console: http://localhost:8080/cases.html
- H2 In-Memory Database Console: http://localhost:8080/h2-console
(JDBC URL:jdbc:h2:mem:legaldb, User:sa, Password:password)
POST /api/auth/register- Create user account with BCrypt password hashingPOST /api/auth/login- Authenticate user credentials and return stateless JWT tokenGET /api/auth/me- Fetch profile of currently authenticated user
POST /api/cases- Create legal case folder (Isolated by user ownership)GET /api/cases- Retrieve all cases belonging to authenticated userGET /api/cases/{id}- Retrieve case details with document countsPATCH /api/cases/{id}/status- Update status (ACTIVE,PENDING_REVIEW,CLOSED,ARCHIVED)
POST /api/documents/upload- Upload PDF, DOCX, TXT, or scanned image contractGET /api/documents/{id}/content- Stream extracted contractual textGET /api/documents/{id}/metadata- Fetch file metadata and character statistics
POST /api/analysis/{documentId}- Execute clause extraction & 13-rule risk scoringGET /api/analysis/{documentId}- Retrieve complete analysis and clause breakdownGET /api/analysis/{documentId}/risks- Retrieve HIGH and CRITICAL risk alerts
GET /api/analytics/dashboard- Global KPI scorecard & risk distribution metricsGET /api/reports/user/{userId}- List compiled legal audit reportsGET /api/reports/{documentId}/pdf- Instant downloadable PDF audit report