International Hackathon Edition | Intelligent Financial Health Management System
"Build Your Safety Net Before the Market Shifts" CAPSTACK is a comprehensive multi-service platform designed to democratize financial wellness. By combining full-stack architecture with AI/ML predictive modeling, we provide users with actionable insights, automated savings protocols, and intelligent analytics.
Designed for the Datanyx 2025 International Hackathon, this edition features premium UI/UX, production-ready code stability, and zero-downtime deployment.
Team Members:
- Shaik Abdul Sammed - Full Stack Developer & Team Lead
- Shaik Muzkeer - Backend Developer
- Shaik Shafi - Frontend Developer
- B. Praveen - ML Engineer
- Problem Statement
- Solution Overview
- Live Deployment
- Key Features
- System Architecture
- Technology Stack
- Project Structure
- Setup & Installation
- API Documentation
- CI/CD Pipeline
- Deliverables
Modern financial management faces critical challenges in developing economies:
- Reactive Tools: Traditional apps track history but fail to predict future risks.
- Emergency Gaps: 60% of individuals lack adequate emergency reserves (3-6 months).
- Behavioral Inconsistency: Savings are often neglected due to a lack of disciplined enforcement.
- Complexity: Financial literacy barriers make it difficult for users to interpret raw data.
The Gap: Users cannot answer the critical question: "If I lose my income today, how many days can I survive?"
CAPSTACK bridges this gap by providing an intelligent financial ecosystem:
- Predictive Analytics: Calculates a "Survival Days" metric based on liquid assets and burn rate.
- Smart Savings: Automated "Lock Mechanisms" that prevent impulsive withdrawals until goals are met.
- AI Health Score: A singular 0-100 metric representing holistic financial wellness.
- Behavioral Nudging: Real-time alerts and recommendations to correct negative spending trends.
The application is fully deployed and production-ready on the Render Cloud Platform.
| Component | URL | Description |
|---|---|---|
| π₯οΈ Dashboard | Launch App | Client-facing interface (Guest Mode Available) |
| βοΈ API Server | View API | RESTful backend services |
| π§ Docs | Live Docs | Interactive API documentation |
Deployment Note: Deployed on Render using native builds (no Docker). Frontend and backend are separate Render web services with automated build & deploy from main.
| Feature | Description |
|---|---|
| π§ AI Health Score | ML-powered metric (0-100) assessing income stability, savings rate, and spending volatility. |
| π Survival Prediction | Calculates the exact number of days a user can maintain their lifestyle without new income. |
| π° Smart Savings Lock | A digital vault that locks funds for specific durations to enforce saving discipline. |
| π― Asset Allocation | AI-recommended portfolio distribution based on user risk profile and market conditions. |
- Glassmorphism UI: Modern design system with gradient palettes and fluid animations.
- Interactive Visualizations: Animated circular scores, pulse effects, and real-time chart updates.
- Robust Error Handling: Centralized error boundaries and graceful degradation strategies.
- Advanced Security: JWT-based authentication with secure session management.
CAPSTACK utilizes a microservices-inspired architecture to separate concerns between the application logic and the machine learning inference engine.
graph TD
User[User Browser/Mobile] -->|HTTPS| Frontend[Next.js Dashboard]
Frontend -->|REST API| Backend[Node.js + Express API]
subgraph "Backend Services"
Backend -->|Auth| JWT[JWT Manager]
Backend -->|Data| DB[(PostgreSQL)]
Backend -->|Cache| Redis[(Redis)]
end
subgraph "Intelligence Layer"
Backend -->|Inference Req| ML[FastAPI ML Service]
ML -->|Model| Scikit[Scikit-Learn Models]
ML -->|Response| Backend
end
| Layer | Technology | Usage |
|---|---|---|
| Frontend | Next.js 14, TypeScript, MUI | Responsive Dashboard & State Management |
| Backend | Node.js, Express, TypeScript | Business Logic & API Gateway |
| Database | PostgreSQL, Redis | Relational Data & Session Caching |
| AI / ML | Python, FastAPI, Scikit-learn | Predictive Modeling & Risk Scoring |
| DevOps | Docker, GitHub Actions, Render | Containerization & CI/CD |
CAPSTACK-2k25/
βββ backend-api/ # Node.js + Express + TypeScript
β βββ src/controllers/ # Business logic
β βββ src/services/ # Feature services
β βββ src/models/ # Database models
β
βββ frontend/ # Next.js + React + TypeScript
β βββ src/pages/ # Route components
β βββ src/components/ # Reusable UI elements
β βββ src/context/ # Global state
β
βββ ml-service/ # FastAPI + Python
β βββ app/models/ # ML models (Pickle/Joblib)
β βββ app/main.py # Inference endpoints
β
βββ infra/ # DevOps Configuration
βββ render.yaml # Render native deploy (no Docker)
βββ docker-compose.yml # Optional local multi-service run- Node.js v18+
- Python 3.11+ (for ML service)
- PostgreSQL 14+
# 1) Clone
git clone https://github.com/Abdul9010150809/CAPSTACK-2k25.git
cd CAPSTACK-2k25
# 2) Install deps
cd backend-api && npm install && cd ..
cd frontend && npm install && cd ..
# 3) Env files
cp backend-api/.env.example backend-api/.env
cp frontend/.env.example frontend/.env
# 4) Database (PostgreSQL)
# ensure a local DB is running, then apply migrations
cd database && psql < migrations/001_initial_schema.sql && cd ..
# 5) Run locally (no Docker)
cd backend-api && npm run dev &
cd ../frontend && npm run dev
# Frontend: http://localhost:3000
# Backend: http://localhost:3001docker-compose -f infra/docker-compose.yml up --buildThe backend exposes a documented REST API.
Base URL: https://capstack-2k25-backend.onrender.com
| Method | Endpoint | Description |
|---|---|---|
POST |
/auth/register |
User registration |
GET |
/finance/healthscore |
Retrieve AI-calculated health score |
GET |
/finance/survival |
Get survival days prediction |
POST |
/savings/lock |
Lock funds into savings account |
- CI: GitHub Actions (lint, type-check, unit tests)
- CD: Render native build (no Docker). Render auto-builds and deploys from
mainfor:- Frontend (Next.js) Web Service
- Backend (Express) Web Service
- Optional local Docker: Only for local multi-service testing via
infra/docker-compose.yml
Comprehensive demonstration materials are available in the /output directory:
- π¬ Demo Video:
00-DEMO-VIDEO.mkv- Complete application walkthrough. - πΈ Screenshots: High-res captures of the Authentication and Dashboard flows.
- π Page PDFs: Detailed PDF captures of the Financial Assessment and Insights pages.
Built with β€οΈ by Team Error 404 for Datanyx 2025