A full-stack web application for credit score management, loan applications, and comprehensive financial guidance with AI-powered assistance.
- Multi-Bureau Credit Scores: View scores from CIBIL, Experian, Equifax, and CRIF
- Animated Speedometer Gauges: Interactive visual representation of credit scores
- Credit History Tracking: 4-week trend analysis with detailed breakdown
- Personalized Score Generation: Dynamic scoring based on user profile
- Score Improvement Tips: Actionable advice for credit enhancement
- Recommended Loans: Personalized loan suggestions based on credit score
- Multiple Loan Types: Personal, Home, Car, and Business loans
- Loan Application Flow: Complete application process with autofill
- Application Tracking: Real-time status updates and notifications
- Risk Assessment: AI-powered loan eligibility and risk analysis
- EMI Calculator: Built-in calculator for loan planning
- Comprehensive Finance Knowledge: Covers all financial topics
- Gemini AI Integration: Advanced AI responses for complex queries
- Smart Fallback System: Detailed responses even without AI
- Personalized Advice: Context-aware recommendations
- 24/7 Availability: Always available financial guidance
- Complete Profile System: Personal, employment, and banking details
- Multi-Bank Support: Add multiple bank accounts
- Profile Validation: Comprehensive form validation
- Secure Authentication: JWT-based authentication system
- Admin Dashboard: Employee management and user oversight
- Responsive Design: Works on all devices
- Modern Components: Built with Radix UI and Tailwind CSS
- Smooth Animations: Framer Motion animations
- Interactive Charts: Recharts for data visualization
- Professional Theme: Blue-themed professional interface
- React 19.1.1 - Modern React with latest features
- Vite - Fast build tool and development server
- Tailwind CSS 4.1.11 - Utility-first CSS framework
- Radix UI - Accessible component library
- Framer Motion - Animation library
- Recharts - Chart library for data visualization
- React Router DOM - Client-side routing
- Lucide React - Icon library
- Node.js - JavaScript runtime
- Express.js 5.1.0 - Web framework
- MongoDB - NoSQL database
- Mongoose 8.18.0 - MongoDB object modeling
- Google Generative AI - AI integration for chatbot
- Nodemailer - Email service
- CORS - Cross-origin resource sharing
- dotenv - Environment variable management
- ESLint - Code linting
- Nodemon - Development server auto-restart
- Vite - Build tool and dev server
- Node.js (v16 or higher)
- MongoDB (local or cloud)
- Google Gemini API key
- Clone the repository
git clone https://github.com/yourusername/know-your-credit.git
cd know-your-credit- Install Backend Dependencies
cd server
npm install- Install Frontend Dependencies
cd ../Frontend
npm install- Environment Setup
Create .env file in server directory:
PORT=3001
MONGODB_URI=mongodb://localhost:27017/know-your-credit
GEMINI_API_KEY=your_gemini_api_key_here
JWT_SECRET=your_jwt_secret_here
EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_app_passwordCreate .env file in Frontend directory:
VITE_BACKEND_URL=http://localhost:3001- Start the Application
Backend:
cd server
npm run devFrontend (in new terminal):
cd Frontend
npm run dev- Access the Application
- Frontend: http://localhost:5173
- Backend API: http://localhost:3001
Know_Your_Credit/
βββ Frontend/ # React frontend application
β βββ public/ # Static assets
β βββ src/
β β βββ components/ # Reusable UI components
β β β βββ ui/ # Base UI components (Radix UI)
β β β βββ AnimatedSpeedometer.jsx
β β β βββ ChatBot.jsx
β β β βββ modals/ # Modal components
β β βββ pages/ # Page components
β β β βββ UserDashboard.jsx
β β β βββ AdminDashboard.jsx
β β β βββ SignIn.jsx
β β β βββ SignUp.jsx
β β βββ hooks/ # Custom React hooks
β β βββ lib/ # Utility functions and API
β β βββ App.jsx # Main app component
β βββ package.json
β βββ vite.config.js
βββ server/ # Node.js backend
β βββ models/ # MongoDB models
β β βββ Employee.js
β β βββ LoanApplication.js
β β βββ Notification.js
β βββ routes/ # API routes
β β βββ chat.js # AI chatbot endpoints
β β βββ employees.js # Employee management
β β βββ bureau.js # Credit bureau APIs
β β βββ otp.js # OTP verification
β βββ services/ # Business logic services
β β βββ bureauService.js
β β βββ emailService.js
β β βββ otpService.js
β βββ index.js # Server entry point
β βββ package.json
βββ README.md
POST /register- User registrationPOST /login- User loginPOST /verify-otp- OTP verification
GET /users- Get all users (admin)PUT /users/:id- Update userDELETE /users/:id- Delete userPOST /search-users- Search users
POST /loan-applications- Submit loan applicationGET /loan-applications/:userId- Get user's applicationsDELETE /loan-applications/:id- Remove application
POST /api/chat- Send message to AI assistant
GET /notifications/:userId- Get user notificationsPUT /notifications/:id/read- Mark notification as read
- Dynamic Generation: Scores generated based on user profile (income, occupation, name seed)
- Multi-Bureau Display: Shows scores from 4 major credit bureaus
- Historical Tracking: 4-week trend with detailed change explanations
- Visual Representation: Animated speedometer gauges with color coding
- Profile Completion: Users must complete profile before applying
- Loan Selection: Choose from recommended loans based on credit score
- Auto-fill Application: Profile data automatically populates forms
- Application Preview: Review before submission
- Status Tracking: Real-time updates and notifications
- Receipt Generation: Printable application receipts
- Comprehensive Knowledge: Covers credit, loans, investments, insurance, tax planning
- Indian Financial Context: Specific to Indian banking and regulations
- Personalized Responses: Uses user's credit score and profile
- Fallback System: Smart responses even when AI is unavailable
- Multi-topic Support: Handles all finance-related queries
- User Management: View, edit, and manage all users
- Application Oversight: Monitor all loan applications
- Search Functionality: Find users and applications quickly
- Analytics: User signup trends and statistics
- JWT Authentication: Secure token-based authentication
- Input Validation: Comprehensive form validation
- Environment Variables: Sensitive data protection
- CORS Configuration: Secure cross-origin requests
- Data Sanitization: Protection against injection attacks
- Mobile-First: Optimized for mobile devices
- Tablet Support: Perfect tablet experience
- Desktop Enhanced: Full desktop functionality
- Cross-Browser: Compatible with all modern browsers
- Professional Theme: Blue-based color scheme
- Smooth Animations: Framer Motion powered
- Interactive Elements: Hover effects and transitions
- Accessibility: ARIA compliant components
- Loading States: Proper loading indicators
- Error Handling: User-friendly error messages
- Build the project:
npm run build - Deploy the
distfolder - Set environment variables in deployment platform
- Set up MongoDB Atlas
- Configure environment variables
- Deploy using platform-specific instructions
# Backend
PORT=3001
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/dbname
GEMINI_API_KEY=your_production_gemini_key
JWT_SECRET=your_strong_jwt_secret
EMAIL_USER=your_production_email
EMAIL_PASS=your_production_app_password
# Frontend
VITE_BACKEND_URL=https://your-backend-domain.comcd Frontend
npm run lintcd server
npm test- Code Splitting: Lazy loading of components
- Image Optimization: Optimized assets
- Bundle Analysis: Vite bundle optimization
- Caching: Proper HTTP caching headers
- Database Indexing: MongoDB performance optimization
- Fork the repository
- Create feature branch:
git checkout -b feature/new-feature - Commit changes:
git commit -am 'Add new feature' - Push to branch:
git push origin feature/new-feature - Submit pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Frontend Developer: React, UI/UX Design
- Backend Developer: Node.js, API Development
- AI Integration: Gemini AI Implementation
- Database Design: MongoDB Schema Design
- v1.0.0 - Initial release with full feature set
- v0.9.0 - Beta release with core features
- v0.8.0 - Alpha release with basic functionality
- Mobile app development
- Advanced analytics dashboard
- Integration with more credit bureaus
- Blockchain-based credit verification
- Machine learning credit predictions
- Multi-language support
- Advanced financial planning tools