# 🚀 NexGen Treasury Management System - HuggingFace Deployment Guide ## **Quick Start (2 minutes)** ### **Option 1: HuggingFace Spaces (Recommended)** 1. **Create a new Space** - Go to https://huggingface.co/spaces - Click "Create new Space" - Name: `nexgen-treasury` - License: Apache 2.0 - Space SDK: **HTML** ← Important! - Visibility: Public - Click "Create Space" 2. **Upload the File** - In your new Space, click "Files" tab - Delete the default `index.html` - Upload the `index.html` file you received - **Done!** Your app is live in 30 seconds 3. **Share Your App** - Space URL: `https://huggingface.co/spaces/YOUR_USERNAME/nexgen-treasury` - Share this link with your team --- ### **Option 2: Local Testing (Instant)** 1. **Save the file** - Save `index.html` to your computer 2. **Open in browser** - Double-click the file - Or drag it into your browser - **Working instantly** - no server needed! --- ### **Option 3: Any Web Server** Deploy to any hosting: - **Netlify**: Drag & drop the HTML file - **Vercel**: Upload as static file - **AWS S3**: Upload to S3 bucket, enable static website hosting - **GitHub Pages**: Push to repo, enable Pages - **Azure**: Upload to Static Web Apps --- ## **Features Included** ✅ **4 Complete Modules:** - Dashboard with KPI overview - Liquidity Intelligence (5 tabs with live updates) - Investment Portfolio management - Forecasting & Scenario Analysis ✅ **Live Data Simulation:** - 6 global bank accounts (multi-currency) - 6 investment positions with yields - 4 covenant compliance rules - Real FX rate conversions - 5-second balance updates ✅ **Professional UI:** - Responsive design - Modern dark/light compatible colors - Production-ready styling - Accessible navigation - Real-time sync indicator --- ## **What You Get** 📊 **Single HTML File** - No build process required - No dependencies to install - No backend needed - Works in any modern browser 💾 **Self-Contained** - React loaded from CDN - All CSS embedded - All JavaScript inline - No external files needed 🔄 **Live Simulation** - Bank balances update every 5 seconds - Real FX calculations - Multi-currency support (USD, AED, GBP, EUR, INR, SGD) - Covenant tracking with compliance status --- ## **Customization** ### Change Company Name Find this line in the HTML (around line 470): ```javascript name: "NexGen Financial Solutions", ``` Replace with your company name. ### Modify Bank Accounts Find the `generateBankAccounts()` function (around line 530) and edit: ```javascript { id: "BA-1", entity: "NEXGEN-AE", bank: "Emirates NBD", currency: "AED", balance: 245.3, minBalance: 50 } ``` ### Update Colors Find the `:root` CSS variables (around line 8): ```css --primary: #00838F; /* Change primary color */ --success: #66BB6A; /* Change success color */ --danger: #EF5350; /* Change danger color */ ``` ### Add Your Logo Replace the emoji in header (💰) with your company logo: ```javascript