This is a Spring Boot application that demonstrates the use of the Drools rules engine to evaluate loan eligibility based on dynamic business rules.
- Java 17
- Spring Boot
- Drools (rules engine)
- MongoDB (for rule storage, optional)
- Maven
- Docker & Docker Compose
git clone https://github.com/oliveira-a-rafael/loan-rules-engine.git
cd loan-rules-enginemvn clean packageThis will create the
loan-rules-engine.jarin thetarget/directory.
docker-compose up --buildThe application will be available at:
http://localhost:8080
Returns basic health status.
{
"status": "UP",
"timestamp": "2025-08-14T15:00:00Z"
}Evaluate loan eligibility for a person.
{
"name": "Alice",
"score": 720
}{
"name": "Alice",
"score": 720,
"eligible": true
}Set in .env (should not be committed):
MONGODB_URI=mongodb://mongo:27017/loanrules
SERVER_PORT=8080MIT