Skip to content

ifabrisarabellapark/ETHSF-scorebox-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎯 ETHSF-scorebox-backend

Python credit scoring model ft. Covalent HQ and a self-built off-chain encryptor.

📦 Requirements

Install necessary Python modules

pip install -r requirements.txt

📂 Environment Variables

Create an .env file

# basic
DATABASE_URL=url_of_database
COVALENT_KEY=covalent_api_key
ETH_ADDRESS=your_metamask_wallet_address
COINMARKETCAP_KEY=coinmarketcap_api_key

# for PUSH notification
db_table=postgres_table_name
host=postgres_host_name
dbname=postgres_database_name
user=postgres_user_name
password=postgres_database_password
push_url_update=push_notification_url
push_url_leaderboard=push_notification_leaderboard

💡 If you depoy this Python backend as an Heroku app, then you can spin up a Heroku postgres database and use those database's credentials.

🛠️ Test on Swagger

Test API endpoints on Swagger passing a payload into the request body and simulating a response

uvicorn main:app --reload

Releases

No releases published

Packages

No packages published