Skip to content

CAPSTACK is a comprehensive multi-service platform designed to help individuals achieve financial wellness through AI/ML insights, automated savings, and intelligent analytics. Perfect for international hackathons with premium UI/UX, production-ready code, and zero errors.

Notifications You must be signed in to change notification settings

Abdul9010150809/CAPSTACK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

91 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏦 CAPSTACK β€” AI-Powered Personal Finance Platform

International Hackathon Edition | Intelligent Financial Health Management System

UI/UX Stack

"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 Error 404

Team Members:

  • Shaik Abdul Sammed - Full Stack Developer & Team Lead
  • Shaik Muzkeer - Backend Developer
  • Shaik Shafi - Frontend Developer
  • B. Praveen - ML Engineer

πŸ“‹ Table of Contents

  1. Problem Statement
  2. Solution Overview
  3. Live Deployment
  4. Key Features
  5. System Architecture
  6. Technology Stack
  7. Project Structure
  8. Setup & Installation
  9. API Documentation
  10. CI/CD Pipeline
  11. Deliverables

🎯 Problem Statement

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?"


✨ Solution Overview

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.

πŸš€ Live Deployment

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.


πŸ“Š Key Features

Core Functionality

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.

Hackathon Edition Enhancements

  • 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.

πŸ—οΈ System Architecture

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
Loading

πŸ› οΈ Technology Stack

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

πŸ“ Project Structure

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

πŸ’» Setup & Installation

Prerequisites

  • Node.js v18+
  • Python 3.11+ (for ML service)
  • PostgreSQL 14+

Quick Start (Render-style, no Docker)

# 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:3001

Optional: Docker (local convenience)

docker-compose -f infra/docker-compose.yml up --build

πŸ”— API Documentation

The 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/CD Pipeline

  • CI: GitHub Actions (lint, type-check, unit tests)
  • CD: Render native build (no Docker). Render auto-builds and deploys from main for:
    • Frontend (Next.js) Web Service
    • Backend (Express) Web Service
  • Optional local Docker: Only for local multi-service testing via infra/docker-compose.yml

πŸ“ Project Outputs & Deliverables

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

About

CAPSTACK is a comprehensive multi-service platform designed to help individuals achieve financial wellness through AI/ML insights, automated savings, and intelligent analytics. Perfect for international hackathons with premium UI/UX, production-ready code, and zero errors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •