Giter VIP home page Giter VIP logo

banks_fetch's Introduction

banks_fetch Build Status

An OTP application to fetch banks accounts and transactions.

Current status of banks modules :

Banks connect accounts transactions
ING OK OK OK
Bourse Direct OK OK OK

Configuration

Setup an empty banks_fetch database (if this database does not exist)

psql
CREATE DATABASE banks_fetch;
CREATE ROLE banks_fetch_user WITH LOGIN;
ALTER USER banks_fetch_user WITH SUPERUSER;
GRANT ALL PRIVILEGES ON DATABASE banks_fetch TO banks_fetch_user;
ALTER DATABASE banks_fetch OWNER TO banks_fetch_user;

Build and run

  1. Build release and start
    rebar3 as prod release
    ./_build/prod/rel/banks_fetch/bin/banks_fetch start
  1. Add an ING bank account in console
    ./_build/prod/rel/banks_fetch/bin/banks_fetch remote_console
banks_fetch_client_manager:add_client({bank_id, <<"ing">>}, {client_id, <<"YOUR_CLIENT_ID">>}, {client_credential, {"YOUR_PASSWORD","YOUR_BIRTHDATE_DDMMYYYY"}})
.

It will connect to your bank and fetch accounts data every 4 hours. Credential (and accounts data) will be stored in postgres database and client will be started again automatically each time banks_fetch is started.

It is possible to create a "virtual" purse account banks_fetch_client_manager:add_client({bank_id, <<"purse">>}, {client_id, <<"David">>}, {client_credential, { {2021,1,26}, [{{bank_id,<<"ing">>},{client_id,<<"YOUR_CLIENT_ID">>},{account_id,<<"MAIN_ACCOUNT_ID">>}}]}}).

For Bourse Direct:

banks_fetch_client_manager:add_client({bank_id, <<"boursedirect">>}, {client_id, <<"YOUR_CLIENT_ID">>}, {client_credential, <<"YOUR_PASSWORD">>})
.

Tests

Full verifications (xref, dialyzer, ct and code coverage) :

rebar3 check

To test a BANK with your own credential, you just need to add a file containing it. See test_with_real_credential function in test/*BANK_SUITE.erl to identify required file and expected content.

An integration test is available in test/banks_fetch__integration_SUITE.erl if you add a file containing bank credential in test/banks_fetch__integration_SUITE_data/real_credential.hrl

banks_fetch's People

Contributors

davidjulien avatar

Stargazers

 avatar

Watchers

 avatar  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.