Complete client-server application with AWS Bedrock AI integration for intelligent construction tool recommendations and fleet management proposals. All FleetFlow-Hack functionality has been successfully ported to this architecture.
This system provides:
- AI-Powered Tool Recommendations using AWS Bedrock Claude 3.5 Sonnet
- Comprehensive Fleet Management with TCO analysis and ROI calculations
- Blueprint Analysis with intelligent scope detection
- Professional Proposals with detailed contract terms and pricing
- Client-Server Architecture with minimal client-side logic and comprehensive server-side intelligence
RedHackCrew/
βββ client/ # React frontend (minimal logic, API calls)
βββ server/ # Node.js backend (all business logic)
βββ FleetFlow-Hack/ # Original implementation (can be removed)
cd server
npm install
cp .env.example .env
# Edit .env with your AWS Bedrock credentials
npm run devThe server will start at http://localhost:3001
cd client
npm install
cp .env.example .env # Optional: customize API URL
npm run devThe client will start at http://localhost:5173
# AWS Bedrock Configuration
AWS_ACCESS_KEY_ID=your_aws_access_key_here
AWS_SECRET_ACCESS_KEY=your_aws_secret_key_here
AWS_REGION=eu-central-1
# Server Configuration
PORT=3001
NODE_ENV=development
CLIENT_URL=http://localhost:5173# API Server URL
VITE_API_URL=http://localhost:3001- Claude 3.5 Sonnet AI model
- Intelligent tool matching
- Comprehensive prompts with product catalogs
- Fallback to enhanced rule-based engine
- Project type optimization (residential, commercial, industrial, etc.)
- Labor count and timeline calculations
- Complexity-based adjustments
- Existing tool filtering
- Total Cost of Ownership (TCO) analysis
- Return on Investment (ROI) calculations
- Contract term optimization (12, 24, 36 months)
- Productivity and downtime metrics
- Project metrics calculation
- Accurate fleet pricing models
- Financial impact analysis
- Risk assessment
- Project analysis with real-time progress
- Tool recommendations with specifications
- Savings and productivity charts
- Fleet proposal generation
- Model:
anthropic.claude-3-5-sonnet-20240620-v1:0 - Purpose: Intelligent tool recommendations based on project requirements
- Fallback: Enhanced rule-based engine when Bedrock unavailable
- Data: Real Hilti product catalog with 30+ tools
- Upload PDF, JPG, PNG, or DWG files
- AI-powered scope detection
- Enhanced recommendations based on document analysis
- Data Collection - Project details, team size, timeline, complexity
- AI Processing - Bedrock analysis or enhanced rules
- Tool Matching - Catalog filtering and optimization
- Financial Calculation - TCO, ROI, productivity metrics
- Proposal Generation - Professional fleet management contracts
- Capital Preservation - OpEx vs CapEx transformation
- Risk Mitigation - 80% theft coverage, maintenance included
- Productivity Gains - 25-45% improvement vs ownership
- Service Guarantees - 24-hour replacement, unlimited repairs
// Project analysis with AI recommendations
POST /api/analyze
{
projectData: ProjectFormData,
blueprint?: File
}
// Generate fleet management proposal
POST /api/proposal
{
projectData: ProjectFormData,
recommendations: ToolRecommendation[],
contractTerm?: 12 | 24 | 36
}
// Server health and configuration
GET /health
GET /api/configcd server
npm run dev # Development with auto-reload
npm run build # TypeScript compilation
npm run lint # Code lintingcd client
npm run dev # Vite dev server
npm run build # Production build
npm run lint # ESLint- Rate Limiting - 100 requests per 15 minutes per IP
- CORS Protection - Configured origins only
- Helmet Security - Security headers
- Input Validation - Zod schema validation
- File Upload Security - Type validation, size limits
- Separation of Concerns - Clean client-server architecture
- Enhanced Error Handling - Comprehensive API error management
- Better Security - Production-ready security middleware
- Scalability - Server can handle multiple clients
- Maintainability - TypeScript, proper structure, documentation
- Flexibility - API-driven, can support mobile apps, integrations
- Remove FleetFlow-Hack - All functionality successfully ported
- Configure AWS Credentials - Set up Bedrock access
- Customize Branding - Update UI colors, logos, content
- Add Tests - Unit and integration testing
- Deploy - Production deployment with monitoring
- Fork the repository
- Create feature branch
- Make changes with proper TypeScript types
- Test both client and server
- Submit pull request
Status: β Complete - FleetFlow-Hack functionality fully ported to client-server architecture with enhanced features and AWS Bedrock integration.