AI-Powered Construction Claims Management Platform
# 1. Install dependencies
npm install
# 2. Configure environment
cp .env.example .env
# 3. Setup database
npm run db:push
# 4. Start server
npm start- π Professional FIDIC & NHAI claim templates
- π€ Three specialized AI assistants (Delay Expert, Quantum Expert, AI Negotiator)
- π Automated claim generation with variable replacement
- π Export to PDF, Excel, Word, JSON, CSV
- π 26 international contract types (FIDIC, JCT, NEC, AIA, World Bank, NHAI)
- π± 50+ currencies with real-time conversion
- π Predictive analytics and benchmarking
- π₯ Multi-user collaboration with RBAC
- π Real PDF/DOCX/XLSX parsing
- π AI-powered document analysis
- πΎ Secure file storage
- π bcrypt authentication (12 rounds)
- π° FIDIC Traditional methodology
- π± FIDIC Green methodology
- π£οΈ NHAI HAM methodology
- π΅ Multi-currency support
- Node.js: 18+
- PostgreSQL: 14+
- npm: 8+
ClaimEvaluator/
βββ client/ # React frontend (TypeScript, Tailwind CSS)
βββ server/ # Express backend
β βββ routes/ # API endpoints
β βββ services/ # Business logic (AI, auth, parsing)
β βββ storage/ # Data persistence layer
βββ shared/ # Shared code
β βββ claimmaster/ # ClaimMaster.ai modules
β βββ constants.ts # Configuration
β βββ helpers.ts # Utilities
β βββ schema.ts # Database schema
βββ tests/ # Test suites (46 tests, 100% pass rate)
βββ docs/ # Documentation
Frontend
- React 18 + TypeScript
- Tailwind CSS
- Wouter (routing)
- Tanstack Query
Backend
- Node.js + Express
- TypeScript
- Drizzle ORM
- PostgreSQL
AI & Processing
- OpenAI, Anthropic, Google Gemini, Grok
- pdf-parse, mammoth, xlsx
- bcrypt, express-session
- Getting Started - Installation and setup
- Test Report - 46 tests, 100% pass rate
- Deployment Guide - Production deployment
# Run all tests
npm test
# Run specific test suites
node tests/claimmaster/test-runner-simple.cjs
node tests/claimmaster/integration-test.mjs
# Test helpers and constants
node test-helpers-constants.cjsTest Coverage: 46 tests, 100% pass rate
- 20 logic tests
- 26 integration tests
# Install dependencies
npm install
# Setup environment
cp .env.example .env
# Edit .env with your settings
# Run database migrations
npm run db:push
# Start development server
npm run dev# Build for production
npm run build
# Start production server
npm start# Database
DATABASE_URL=postgresql://user:password@localhost:5432/claimevaluator
# Server
PORT=5003
NODE_ENV=production
# Session
SESSION_SECRET=your-secret-key
# AI API Keys (optional)
OPENAI_API_KEY=your-key
ANTHROPIC_API_KEY=your-key
GOOGLE_API_KEY=your-key
GROK_API_KEY=your-key
# File Upload
MAX_FILE_SIZE=10485760
UPLOAD_DIR=./uploadsPOST /api/auth/register- Register new userPOST /api/auth/login- LoginPOST /api/auth/logout- LogoutGET /api/auth/me- Get current userPOST /api/auth/change-password- Change password
POST /api/documents/upload- Upload documentPOST /api/documents/upload-multiple- Upload multipleGET /api/documents/:id- Get documentDELETE /api/documents/:id- Delete documentGET /api/documents- List documents
POST /api/claims/draft- Draft claimGET /api/claims/templates- List templatesPOST /api/claims/analyze- AI analysisPOST /api/claims/export- Export claim
GET /api/health- Health check
β ClaimMaster.ai Phase 1 (1500+ lines)
- Professional FIDIC & NHAI templates
- AI-powered drafting engine
- Three specialized AI assistants
- Confidence scoring (70-95%)
β Global Features
- 26 contract standards
- 50+ currencies
- Predictive analytics
- Collaboration & RBAC
β Document Processing
- Real PDF/DOCX/XLSX parsing
- AI analysis
- Secure storage
β Security
- bcrypt authentication
- Session management
- Role-based access control
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod# Build
npm run build
# Set environment variables
export DATABASE_URL=...
export SESSION_SECRET=...
# Start
npm startSee DEPLOYMENT_GUIDE.md for detailed instructions.
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'feat: add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
This project is licensed under the MIT License - see LICENSE file.
- FIDIC for contract standards
- NHAI for HAM methodology
- OpenAI, Anthropic, Google for AI capabilities
- Issues: https://github.com/CRAJKUMARSINGH/ClaimEvaluator/issues
- Discussions: https://github.com/CRAJKUMARSINGH/ClaimEvaluator/discussions
Built with β€οΈ for the construction industry