Skip to content

gsaileshkumar/loan-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loan Application

Simple loan application that gets in user and business details and decides whether the required loan amount is approved or not. If Approved displays User the approved amount

Tech Stack

Frontend

  • Typescript
  • Next JS
  • Tailwind CSS
  • React Testing Library

Backend

  • Python
  • FastAPI
  • Pandas
  • Pytest

Assumption

  • The accounting software and decision engine are already implemented. The backend uses mock data to simulate the response from these services.
  • Balance sheet provider gives balance sheet in csv format
  • Decision Engine approves Loan if preAssessmentValue is at-least 60% else the loan is not approved
  • Decision Engine only grants 80% of the required loan amount

Architecture

Architecture

Local Development

# Pre-requisite node >= 16 and yarn >= 1.22
cd frontend
yarn
yarn dev

# Pre-requisite python conda virtual env
cd backend
make setup
make start

Test

cd frontend
yarn test

cd backend
make test

Build application using Docker

cd frontend
docker build -t loan-app-fe .

cd backend
docker build -t loan-app-be .

Run the application using Docker compose

# Pre-requisite docker-compose
docker compose up -d

# Frontend app can be accessed at http:localhost:3000
# Backend app can be accessed at http:localhost:4000

About

Simple loan application systemSimple loan application that gets in user and business details and decides whether the required loan amount is approved or not. If Approved displays User the approved amount

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors