The Credit Approval System is a Dockerized Django REST API designed to evaluate customer loan eligibility using a rule-based credit scoring mechanism.
It calculates credit scores based on:
- Loan repayment history
- Current debt exposure
- Number of active loans
- Income levels
- Interest rate corrections
The system determines loan approval status and corrected interest rates while ensuring financial constraints such as the 50% income exposure rule.
- ๐งฎ Credit Score Calculation Engine
- ๐ EMI Calculation Logic
- ๐ Interest Rate Correction Slabs
- ๐ค Customer Registration
- ๐ฆ Loan Creation & Management
- ๐ View Customer Loans
- ๐ Bulk Data Ingestion from Excel
- ๐ณ Fully Dockerized Setup
- ๐ PostgreSQL Database
- ๐ Automatic Migrations on Startup
- Backend: Django 6 + Django REST Framework
- Database: PostgreSQL
- Containerization: Docker & Docker Compose
- Excel Handling: OpenPyXL
- API Communication: RESTful JSON APIs
graph TD
Client --> API[Django REST API]
API --> DB[(PostgreSQL)]
API --> Engine[Credit Scoring Engine]
Docker --> API
Docker --> DB
credit-approval-system/
โโโ docker-compose.yml
โโโ Dockerfile
โโโ manage.py
โโโ requirements.txt
โโโ core/
โโโ customers/
โโโ loans/
โโโ scripts/
- Docker
- Docker Compose
docker-compose up --buildThe API will be available at:
http://localhost:8000
POST /registerโ Register new customerPOST /check-eligibilityโ Check loan eligibilityPOST /create-loanโ Create a loanGET /view-loan/<loan_id>โ View loan detailsGET /view-loans/<customer_id>โ View all loans for a customer
- Credit Scoring Engine
- EMI Calculation
- Interest Slab Correction
- Docker Integration
- Authentication & JWT
- Admin Dashboard
- Production Deployment
MIT License ยฉ 2025 Aryan Baadlas
Aryan Baadlas
Email: aryanbaadlas@gmail.com
GitHub: https://github.com/be-a-guptaji
If you like this project, give it a star โญ on GitHub!