This is a credit approval system that processes loan applications and customer data to make credit decisions.
- Docker
- Docker Compose
credit_approval_system/
├── credit_approval_system/ # Main application code
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose configuration
├── requirements.txt # Python dependencies
├── loan_data.xlsx # Sample loan data
└── customer_data.xlsx # Sample customer data
-
Clone the repository
git clone <repository-url> cd credit-approval-system
-
Build and start the containers
docker-compose up --build
This command will:
- Build the Docker image using the Dockerfile
- Start the application container
- Set up any required services defined in docker-compose.yml
-
Access the application
- The application will be available at
http://localhost:8000
(or the port specified in your docker-compose.yml)
- The application will be available at
-
Stop the application
docker-compose down
docker-compose run --rm app pytest
docker-compose logs -f
The project includes two sample data files:
loan_data.xlsx
: Contains historical loan application datacustomer_data.xlsx
: Contains customer information
These files are used for training and testing the credit approval model.
The following environment variables can be configured in the docker-compose.yml
file:
DEBUG
: Set to "True" for development, "False" for productionSECRET_KEY
: Application secret keyDATABASE_URL
: Database connection string
-
If you encounter permission issues:
sudo docker-compose up --build
-
If the containers fail to start:
docker-compose down docker system prune -f docker-compose up --build
-
To check container status:
docker-compose ps
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
https://drive.google.com/file/d/1uY0T6g3C9F-xCJgyOnr9MVVOMnfN3eqk/view?usp=sharing