Skip to content

jhaArnav/mloengine-blogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MLO Engine Logo

Advanced Mortgage Loan Origination Platform for Modern Lending Professionals

Version License

Next.js React TypeScript Tailwind CSS

Quick Start β€’ Features β€’ Screenshots β€’ Documentation β€’ Support


🎯 About MLO Engine

MLO Engine is a comprehensive mortgage loan origination platform designed for Mortgage Loan Officers (MLOs), real estate professionals, and lending institutions. Built with modern web technologies, it provides real-time loan calculations, client management, and professional marketing tools.

Key Capabilities

  • Loan Calculations: Purchase and refinance scenarios with real-time payment calculations
  • Client Management: Comprehensive database for borrower profiles and loan options
  • Marketing Tools: Professional open house flyers with live loan data
  • Team Collaboration: Share scenarios with team members and real estate partners
  • Multi-State Support: Calculations for 15 states with county-level accuracy

✨ Features

🏠 Loan Analysis Tools

Feature Description Status
Purchase Calculator Full purchase loan analysis with multiple loan types βœ… Live
Refinance Calculator Rate & term and cash-out refinance calculations βœ… Live
Down Payment Assistance DPA program calculations and qualification βœ… Live
Income Calculators Schedule C, W2, 1120S, rental income analysis βœ… Live
Lead Calculator Lead generation and qualification tools βœ… Live

πŸ“Š Professional Features

  • Client Database: Store and manage borrower profiles with loan scenarios
  • Option Comparison: Compare multiple loan options side-by-side
  • Open House Flyers: Generate co-branded marketing materials
  • Sharing Console: Share calculations with realtors and clients
  • Team Management: Collaborate with team members on loan scenarios

πŸ›οΈ Loan Products Supported

  • Conventional: Conforming and jumbo loans
  • Government: FHA, VA, USDA loan programs
  • Non-QM: Alternative documentation loans
  • Down Payment Assistance: Various DPA programs

🌎 States Supported (15 States)

Southeast: Florida, Georgia, North Carolina, South Carolina, Tennessee
Southwest: Arizona, Texas
Northeast: Massachusetts, Maryland, New Jersey
West: California, Colorado, Nevada, Utah, West Virginia

πŸ“Έ Screenshots

Loan Options
Loan Option Comparison
Schedule C Calculator
Income Calculators
Open House Flyer
Open House Flyers
DPA Calculator
Down Payment Assistance

πŸ› οΈ Technology Stack

Frontend

  • Framework: Next.js 15.3.3 (App Router)
  • UI Library: React 18.3.1 with TypeScript 5.5.4
  • Styling: Tailwind CSS 3.4.12 + Radix UI Components
  • State Management: Zustand with Immer
  • Forms: React Hook Form patterns
  • Animations: Framer Motion

Backend & Services

  • Database: Supabase (PostgreSQL)
  • Authentication: Supabase Auth with OTP support
  • File Storage: Supabase Storage
  • PDF Generation: jsPDF, html2pdf.js
  • Image Processing: Sharp, react-easy-crop

Development Tools

  • Testing: Jest with React Testing Library
  • Code Quality: ESLint, Prettier
  • Performance: Bundle analyzer, Lighthouse integration

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Supabase CLI installed (npm install -g supabase)
  • Docker Desktop (for local Supabase)

Installation & Setup

1. Clone and Configure Environment

# Clone the repository
git clone https://github.com/loandock/mloengine.git
cd mloengine

# IMPORTANT: Set up root environment variables FIRST
cp .env.example .env
# Edit .env with your configuration

⚠️ Critical: The .env file in the root directory MUST be configured before running any commands.

2. Initial Backend Setup (Required Once)

# Run backend setup - this MUST be done at least once before using frontend
./entrypoint.sh --backend

This initializes the local Supabase instance with the database schema.

3. Normal Development Usage

# Typical usage - runs both backend and frontend
./entrypoint.sh --backend --frontend

This starts:

Entrypoint Script Options

./entrypoint.sh [options]

Options:
  --backend    Start the Supabase backend
  --frontend   Start the Next.js frontend
  --stop       Stop the Supabase service
  --reset      Reset the Supabase database
  --status     Show Supabase instance status
  --clean      Remove .env.local files before starting
  --help       Display help message

Manual Setup (Alternative)

If you prefer manual setup or need to run services separately:

# Backend setup
cd backend
supabase start

# Frontend setup (in a new terminal)
cd frontend/mloengine
npm install
cp .env.example .env.local
# Edit .env.local with Supabase local credentials
npm run dev

Environment Variables

Root .env file (required for entrypoint script):

# Add your environment-specific variables

Frontend .env.local file (auto-generated or manual):

NEXT_PUBLIC_SUPABASE_URL=http://localhost:54323
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_local_anon_key
NEXT_PUBLIC_ENVIRONMENT=development

πŸ’» Development

Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run format       # Format code with Prettier
npm run test         # Run tests
npm run analyze      # Analyze bundle size

Project Structure

mloengine/
β”œβ”€β”€ frontend/mloengine/     # Next.js application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ app/           # App router pages
β”‚   β”‚   β”œβ”€β”€ components/    # React components
β”‚   β”‚   β”œβ”€β”€ hooks/         # Custom hooks
β”‚   β”‚   β”œβ”€β”€ models/        # Business logic
β”‚   β”‚   β”œβ”€β”€ store/         # Zustand stores
β”‚   β”‚   └── utils/         # Utilities
β”‚   └── public/            # Static assets
β”œβ”€β”€ backend/               # Supabase configuration
└── documentation/         # Project documentation

πŸ“š Documentation

Comprehensive documentation is available in the /documentation directory:

πŸ§ͺ Testing

The project includes comprehensive test coverage:

  • 48 test files covering core business logic
  • State calculations verified for all 15 supported states
  • Loan calculations tested for accuracy
  • Run tests with: npm test

πŸ“ž Support

πŸ”’ Security

  • Authentication: Secure login with OTP support
  • Data Isolation: Row Level Security (RLS) ensures data privacy
  • Encryption: All data transmitted over HTTPS
  • Compliance: Equal Housing Opportunity compliant

πŸ“„ License

This project is proprietary software. All rights reserved.

Copyright Β© 2024 LoanDock, LLC


Equal Housing Opportunity

Equal Housing Opportunity

MLO Engine - Empowering Mortgage Professionals

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors