GitHunt
VE

Venkatnvs/TrustLedger

A comprehensive web platform designed to provide complete transparency in fund flow management for institutions, enabling stakeholders to track, monitor, and analyze financial transactions with full accountability.

TrustLedger - Transparent Fund Flow Management Platform

A comprehensive web platform designed to provide complete transparency in fund flow management for institutions, enabling stakeholders to track, monitor, and analyze financial transactions with full accountability.

๐Ÿš€ Live Demo

Video Demo

https://github.com/user-attachments/assets/a7b8e5f0-f492-4544-b429-635459abdbb7

๐Ÿ”‘ Demo Credentials

Use these credentials to test different user roles:

  • Admin: admin / admin123
  • Auditor: auditor / password123
  • Citizen: citizen / password123
  • Committee: committee / password123

๐Ÿ“‹ Table of Contents

โœจ Features

๐Ÿ” Authentication & Authorization

  • JWT-based Authentication with refresh token support
  • Role-based Access Control (Admin, Manager, User)
  • Secure Login/Registration with form validation
  • Protected Routes for sensitive operations

๐Ÿ’ฐ Fund Flow Management

  • Real-time Fund Tracking from sources to projects
  • Multi-level Fund Allocation (Source โ†’ Department โ†’ Project)
  • Transaction Verification and approval workflows
  • Fund Flow Visualization with interactive diagrams
  • Anomaly Detection using AI-powered analysis

๐Ÿ“Š Project Management

  • Project Lifecycle Tracking (Planning โ†’ Active โ†’ Completed)
  • Budget Management with version control
  • Spending Records with category classification
  • Progress Monitoring with completion percentages
  • Timeline Tracking with milestone management

๐Ÿ“ˆ Analytics & Reporting

  • Comprehensive Dashboard with key metrics
  • Budget Analytics with spending trends
  • Impact Visualization with beneficiary tracking
  • Trust Indicators scoring system
  • Custom Reports generation

๐Ÿ“„ Document Management

  • Document Upload with drag-and-drop support
  • File Organization by project/department
  • Document Verification and approval
  • Version Control for document updates
  • Search & Filter capabilities

๐Ÿค– AI-Powered Features

  • Intelligent Chatbot for user assistance
  • Anomaly Detection in fund flows
  • Automated Insights and recommendations
  • Smart Search with natural language processing

๐Ÿ‘ฅ Community Features

  • Community Feedback system
  • Public Project Visibility with transparency
  • Feedback Management with priority levels
  • Response Tracking and resolution

๐Ÿ” Advanced Search & Filtering

  • Multi-criteria Search across all entities
  • Advanced Filters for complex queries
  • Real-time Search with instant results
  • Saved Search configurations

๐Ÿ›  Tech Stack

Frontend

  • React - Modern UI library
  • TypeScript - Type-safe development
  • Vite - Fast build tool and dev server
  • Tailwind CSS - Utility-first CSS framework
  • Radix UI - Accessible component primitives
  • React Query - Data fetching and caching
  • Wouter - Lightweight routing
  • Recharts - Data visualization
  • React Hook Form - Form management
  • Zod - Schema validation

Backend

  • Django - Python web framework
  • Django REST Framework - API development
  • JWT Authentication - Secure token-based auth
  • CORS Headers - Cross-origin resource sharing
  • Swagger/OpenAPI - API documentation
  • Django Filters - Advanced filtering

AI & ML

  • Google Gemini AI - Natural language processing
  • LangChain - AI application framework
  • Custom AI Services - Anomaly detection

Development Tools

  • ESLint - Code linting
  • TypeScript - Static type checking
  • Vite - Development server
  • Git - Version control

๐Ÿš€ Installation

Prerequisites

  • Node.js 18+ and npm
  • Python 3.8+
  • Git

Frontend Setup

cd Trust-Ledger
npm install
npm run dev

Backend Setup

cd TrustLedger_backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

Environment Variables

Create a .env file in the backend directory:

SECRET_KEY=your-secret-key
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
GEMINI_API_KEY=your-gemini-api-key

๐Ÿ“š API Documentation

Swagger UI

Access the interactive API documentation at:

Key API Endpoints

Authentication

  • POST /api/auth/login/ - User login
  • POST /api/auth/register/ - User registration
  • POST /api/token/refresh/ - Token refresh

Fund Flows

  • GET /api/fund-flows/ - List all fund flows
  • POST /api/fund-flows/ - Create new fund flow
  • GET /api/fund-flows/{id}/ - Get specific fund flow

Projects

  • GET /api/core/projects/ - List all projects
  • POST /api/core/projects/ - Create new project
  • GET /api/core/projects/{id}/ - Get specific project

Analytics

  • GET /api/analytics/dashboard/ - Dashboard metrics
  • GET /api/analytics/budget/ - Budget analytics
  • GET /api/analytics/impact/ - Impact metrics

Admin Panel

Access the Django admin interface at https://trustledger-vvwh.onrender.com/admin to:

  • Manage users and permissions
  • View and edit all data models
  • Monitor system activity
  • Configure application settings

๐Ÿ“ Project Structure

TrustLedger/
โ”œโ”€โ”€ Trust-Ledger/                 # Frontend React Application
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/          # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ pages/              # Page components
โ”‚   โ”‚   โ”œโ”€โ”€ contexts/           # React contexts
โ”‚   โ”‚   โ”œโ”€โ”€ hooks/              # Custom hooks
โ”‚   โ”‚   โ”œโ”€โ”€ lib/                # Utilities and API
โ”‚   โ”‚   โ””โ”€โ”€ utils/              # Helper functions
โ”‚   โ””โ”€โ”€ public/                 # Static assets
โ”‚
โ”œโ”€โ”€ TrustLedger_backend/         # Backend Django Application
โ”‚   โ”œโ”€โ”€ accounts/               # User management
โ”‚   โ”œโ”€โ”€ core/                   # Core models and services
โ”‚   โ”œโ”€โ”€ fund_flows/            # Fund flow management
โ”‚   โ”œโ”€โ”€ documents/             # Document handling
โ”‚   โ”œโ”€โ”€ analytics/             # Analytics and reporting
โ”‚   โ””โ”€โ”€ ai_services/           # AI-powered features
โ”‚
โ””โ”€โ”€ README.md                   # This file

๐ŸŽฏ Key Features Overview

1. Transparent Fund Tracking

  • Complete visibility into fund allocation and spending
  • Real-time updates on financial transactions
  • Multi-level approval workflows

2. Project Management

  • End-to-end project lifecycle management
  • Budget tracking with version control
  • Progress monitoring and reporting

3. AI-Powered Insights

  • Intelligent anomaly detection
  • Automated recommendations
  • Natural language chatbot assistance

4. Community Engagement

  • Public project visibility
  • Community feedback system
  • Transparent communication channels

5. Advanced Analytics

  • Comprehensive reporting dashboard
  • Trust indicator scoring
  • Impact measurement and visualization

๐Ÿ”ง Development

Running Tests

# Frontend tests
npm run test

# Backend tests
python manage.py test

Building for Production

# Frontend build
npm run build

# Backend deployment
python manage.py collectstatic

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“ž Contact


TrustLedger - Building trust through transparency in fund management.