Git Product home page Git Product logo

drik / fineract-credit-scorecard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/fineract-credit-scorecard

0.0 0.0 0.0 40.66 MB

Fineract Credit Scorecard - A credit scoring module for Apache Fineract (https://github.com/apache/fineract)

Home Page: https://fineract.apache.org/

License: Apache License 2.0

Shell 0.28% JavaScript 2.38% Python 13.73% Java 55.29% CSS 6.45% HTML 6.59% Batchfile 0.27% Jupyter Notebook 8.11% Dockerfile 0.03% SCSS 6.85%

fineract-credit-scorecard's Introduction

Fineract Credit Scorecard

The project consisted of providing an AI powered solution to the users for credit assessment of loans. The project covered various aspects from classical AI, considering various statistical models, to the modern day neural network.

The project is enriched with various credit modeling techniques, giving access to the user to choose one or any from them. It also takes care of the different data sources from which data can be fetched and has been fully incorporated to handle data coming from various sources like JSON/XML or SQL.

It is a RESTFUL API module written in django and Django Rest framework with the Java SDK and the fineract plugin.

Getting started

Ensure you have the following installed in your system:

  1. git
  2. MySQL v5.7
  3. python v3.6.8+

You can install python for your platform by following the python getting started guide.

Setting up local development environment

To set up server locally you need to install all the requirements listed in requirements.txt. But first, you need to create and activate your project virtual environment by using the commands:

python -m venv env

For Linux or MacOS environment:

source env/bin/activate

For windows environment:

./env/bin/activate

You can then install project dependencies using the following command:

pip install -r requirements.txt

Instructions to to run migrations

Once you have successfully installed all the dependencies, you need to run the database migrations. First, you need to ensure your database connection is properlty configured. Start by making sure you have the required version of MySQL installed. Alternatively, you can run the required version of the database server in a container, instead of having to install it, like this:

docker run --name mysql-5.7 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mysql -d mysql:5.7

and stop and destroy it like this:

docker rm -f mysql-5.7

Beware that this database container database keeps its state inside the container and not on the host filesystem. It is lost when you destroy (rm) this container. This is typically fine for development. See Caveats: Where to Store Data on the database container documentation re. how to make it persistent instead of ephemeral.

You can the run the required project migrations using the command:

python manage.py migrate

Instructions to run application

Start the application server by running the command:

python manage.py serve

The app will start at http://127.0.0.1:8000/

Instructions to run using Docker and docker-compose

It is possible to easily run Fineract Credit Scorecard server using docker and docker-compose.

As Prerequisites, you must have docker and docker-compose installed on your machine; see Docker Install and Docker Compose Install.

Alternatively, you can also use Podman (e.g. via dnf install podman-docker), and Podman Compose (e.g. via pip3 install podman-compose) instead of Docker.

Now you can spin up your instance by:

    docker-compose build
    docker-compose up -d

Once you are done, you can stop the containers by issueing the command:

    docker-compose down

The docker-compose.yml will build the scorecard server container from the source based on the Dockerfile.

Instructions to generate client SDKs

To generate the client SDKs

  • First Refresh the openapi spec:

    python manage.py spectacular --file openapi.yml
    
  • Then generate the SDKs:

    ./gradlew clean buildJavaSdk
    

client SDKs will be generated in build/generated directory

Other useful commands

  • Refresh the openapi spec:

    python manage.py spectacular --file openapi.yml
    

Running Fineract with the Scorecard Integration

The fineract scorecard integration takes the approach of a plugin as it's done for Fineract Pentaho.

Follow Scorecard Plugin README to see how to run Fineract with the scorecard integration.

Instructions to configure IDE

For vscode(Visual Studio Code) users, you can follow this guide to setup your ide for django project development

Want to help? contributions welcome

Want to file a bug, request a feature, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues. Make sure you follow the guidelines before sending a contribution!

fineract-credit-scorecard's People

Contributors

sksdonni avatar xurror avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.