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
- Frontend: https://trust-ledger.vercel.app
- Backend API: https://trustledger-vvwh.onrender.com
- API Documentation (Swagger): https://trustledger-vvwh.onrender.com
- Admin Panel: https://trustledger-vvwh.onrender.com/admin
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 devBackend 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 runserverEnvironment 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:
- Swagger UI: https://trustledger-vvwh.onrender.com
- ReDoc: https://trustledger-vvwh.onrender.com/redoc
- JSON Schema: https://trustledger-vvwh.onrender.com/swagger.json
Key API Endpoints
Authentication
POST /api/auth/login/- User loginPOST /api/auth/register/- User registrationPOST /api/token/refresh/- Token refresh
Fund Flows
GET /api/fund-flows/- List all fund flowsPOST /api/fund-flows/- Create new fund flowGET /api/fund-flows/{id}/- Get specific fund flow
Projects
GET /api/core/projects/- List all projectsPOST /api/core/projects/- Create new projectGET /api/core/projects/{id}/- Get specific project
Analytics
GET /api/analytics/dashboard/- Dashboard metricsGET /api/analytics/budget/- Budget analyticsGET /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 testBuilding 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
- Email: venkatnvs2005@gmail.com
- Project Link: https://github.com/Venkatnvs/TrustLedger
TrustLedger - Building trust through transparency in fund management.