https://github.com/gorenje/tenant.credit-rating
Credit ratings for tenants based on their account activity.
https://github.com/gorenje/tenant.credit-rating
Last synced: 2 months ago
JSON representation
Credit ratings for tenants based on their account activity.
- Host: GitHub
- URL: https://github.com/gorenje/tenant.credit-rating
- Owner: gorenje
- Created: 2018-04-30T08:30:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T08:31:45.000Z (almost 7 years ago)
- Last Synced: 2025-01-04T19:44:45.288Z (4 months ago)
- Language: CSS
- Size: 1.82 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Credit Rating based on Account data
===Sinatra app for handling account data to generate a credit rating.
Prerequistes
---Before deploying to Heroku, you need to generate key/IV for the encryption
of the credentials.Generate a new cred key with:
rake shell
prompt> cipher = OpenSSL::Cipher::AES.new(128, :CBC)
prompt> cipher.encrypt
prompt> Base64.encode64(cipher.random_key) ## value for CRED_KEY_BASE64
prompt> Base64.encode64(cipher.random_iv) ## value for CRED_IV_BASE64Generating Private/Public key pair suitable for password encryption:
openssl genrsa -out mykey.pem 2048
openssl rsa -in mykey.pem -pubout > mykey.pubOr using ruby:
key = OpenSSL::PKey::RSA.generate(2048)
key.export # private key
key.public_key.exportFeatures
---1. Credit Rating History
2. Bank Account data import
3. Bank Account transaction data automatic import
4. Credit Rating BadgeLocal testing
---Generate a ```.env``` file by running:
bundle exec rake appjson:to_dotenv
This will do it's best to generate test environment including setting
up the various ciphers and keys.Bootstrapping
---Need to run the following tasks to initialise the app:
rake import:figo_supported_stuff
After that, the following tasks should be run regularly:
rake import:figo_supported_stuff # once a day
rake import:from_figo # every 10 mins
rake ratings:compute # every 10 minsThese takes ensure things are up-to-date and that transactions are
retrieved as soon as they become available.