Vaibhav More Logo
VAIBHAVMORE
FUNCTIONAL MICROSERVICES STACK•
2024

MedTrust

Unified Medical Donation Platform with AI Fraud Detection

Full-stack medical fundraising platform with real-time donor transparency, expense tracking, and AI-powered fraud detection microservice.

GitHub Repository
Category

Full-Stack Web, AI & Machine Learning, Backend Systems

Timeline

2024 Development

Primary Core

Next.js 14 • React 18

Platforms

Cross-Platform

PROJECT OVERVIEW & STRATEGY

Problem, Solution & Engineering Scope

The Industry Friction

Operational Challenges & Cloud Fragility

Small and medium enterprises often face erratic network outages, recurring SaaS subscription costs, and vendor lock-in. Existing cloud accounting tools stop functioning when internet connectivity fails, stalling physical store checkout counters.

The Architectural Solution

Offline-First Zero Latency Local Engine

MedTrust solves the donor trust crisis in medical crowdfunding through an end-to-end transparency ledger. Patients submit hospital bills, NGOs audit and verify campaign legitimacy, and donors track fund utilization in real time. The platform integrates a FastAPI machine learning microservice that analyzes campaign narratives, detects anomalous requested sums against standard medical costs, and flags suspicious activity prior to fund disbursal.

Core Project Objectives
  • 1Multi-tier containerized architecture (Next.js frontend, Express API, FastAPI ML microservice)
  • 2AI fraud detection analyzing text patterns and hospital bill amount z-scores
  • 3Razorpay payment verification with cryptographic HMAC-SHA256 signature validation
  • 4AWS S3 private file storage with time-limited pre-signed URL generation
Target End-Users
  • Automotive Service Centers & Independent Garages
  • Spare Parts Retailers & Inventory Managers
  • Offline POS Operators needing Zero-Cloud Dependability
Architecture & Modules

Key System Capabilities

Engineered features and deep architectural implementations.

3 Modular Features

Role-Based Access Control

Granular JWT authorization separating Donor, Patient, NGO Verifier, and Super Admin privileges.

Cryptographic Payment Verification

Razorpay integration with server-side HMAC-SHA256 signature validation.

AI Fraud Scoring Pipeline

Scikit-learn pipeline evaluating requested amounts against clinical treatment brackets.

Topology & Pipeline

System Architecture & Engineering Design

High-throughput, decoupled system topology balancing offline persistence, low latency, and modular integrations.

High-Level Distributed System
Interactive Architecture Map
Frontend / UI

Presentation Layer

User interface, client-side state handling, input sanitization, and responsive views.

Main / API

Application Core

Core domain logic, transaction coordinator, validation pipeline, and IPC/API endpoints.

Database

Persistence Layer

Normalized persistence layer with indexing, foreign key constraints, and transactional ACID safety.

Integrations

External Services

Third-party APIs, asynchronous cloud synchronization, document generators, and external webhooks.

Frontend Layer

User interface, client-side state handling, input sanitization, and responsive views.

Backend / Logic

Core domain logic, transaction coordinator, validation pipeline, and IPC/API endpoints.

Database Layer

Normalized persistence layer with indexing, foreign key constraints, and transactional ACID safety.

Integration Layer

Third-party APIs, asynchronous cloud synchronization, document generators, and external webhooks.

Under The Hood

Technology Stack & Core Tooling

Selected languages, frameworks, runtime environments, and engines.

11 Technologies Identified
Next.js 14 logo
Frontend

Next.js 14

Full-stack React framework featuring App Router architecture, Server Components, and optimized SEO rendering.

Integratednextdotjs
React 18 logo
Frontend

React 18

React 18 concurrent rendering engine with state batching, transitions, and suspense boundaries.

Integratedreact
Tailwind CSS logo
Frontend

Tailwind CSS

Utility-first CSS framework enabling design token consistency, responsive layouts, and dark mode theming.

Integratedtailwindcss
Node.js logo
Backend

Node.js

Asynchronous event-driven JavaScript runtime executing server-side workflows, file streams, and IPC handlers.

Integratednodedotjs
Express.js logo
Backend

Express.js

Minimalist, unopinionated web framework for Node.js delivering REST endpoints and middleware security pipelines.

Integratedexpress
FastAPI (Python) logo
Backend

FastAPI (Python)

Dynamic programming language utilized for data modeling, statistical ARIMA forecasting, and machine learning pipelines.

Integratedpython
scikit-learn logo
AI/ML

scikit-learn

Machine learning library providing predictive regressions, classification ensembles, and feature scaling.

Integratedscikitlearn
MySQL logo
Database

MySQL

High-performance transactional relational database with InnoDB foreign key cascades and B-tree indexes.

Integratedmysql
AWS S3 logo
DevOps

AWS S3

Highly durable object storage storing binary assets, documents, and backups with pre-signed URL access.

Integratedamazons3
Razorpay API logo
Security

Razorpay API

Payment gateway integration with cryptographic HMAC-SHA256 signature verification and automated webhook reconciliation.

Integratedrazorpay
Docker Compose logo
DevOps

Docker Compose

Multi-container orchestration coordinating API services, databases, and reverse proxies through unified manifests.

Integrateddocker
Problem Solving

Engineering Challenges & Technical Solutions

Complex bottlenecks, concurrency hurdles, and architectural decisions resolved during development.

1 Critical Engineering Trade-offs
Technical Resolution

Configured AWS S3 with private ACLs and temporary pre-signed URL generation with 15-minute expiration windows.

Authorship & Ownership

Individual Contributions & Architectural Ownership

Core development, system architecture, database schema, and delivery milestones.

Architected the Docker Compose environment orchestrating Next.js, Express, MySQL, and FastAPI

Designed the normalized relational database schema with connection pooling

Implemented secure JWT middleware and HMAC payment verification handlers

Results & Metrics

Project Outcomes & Benchmarks

Created a defensible, auditable crowdfunding workflow demonstrating how AI classification and cryptographic validation restore donor trust.

Next Case Studies

Explore Other Architectures

All Projects & Case Studies →
Automation & Utilities

AutoBillDrive

Offline-first desktop billing application for Windows with SQLite persistence, automated PDF generation, Google Drive sync, and WhatsApp delivery.

Explore Architecture
Full-Stack Web

EventApp

Production-ready event registration platform with Spring Boot 3.2, React 18, JWT RBAC, QR-code ticket generation, and async email confirmations.

Explore Architecture