Skip to content

BHodl/bhodl-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

bhodl-calculator is a simple webapp that use Coingekko API to calculate the current value of a previous investment in Bitcoin. You can try it with my live demo. Note that the API can only handle 100 requests/minutes, so the best is to run it youself.

Setup

Clone bhodl-calculator :

~/$ git clone https://github.com/bhodl/bhodl-calculator.git

Setup a virtual environnement, activate it, and install dependancy like this :

~/$ cd bhodl-calculator
~/bhodl-calculator/$ virtualenv -p python3 .env
~/bhodl-calculator/$ source .env/bin/activate
(.env)~/bhodl-calculator/$ pip install -r requirements.txt

Now run the app like this :

(.env)~/bhodl-calculator/$ python app.py

You shoud now see something like this in the terminal window :

 * Debug mode: on
 * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN:154-254-654

Just point your browser to your <ip_address>:5000 and your're good to go!

To do

  • Add safegard to prevent to much requests
  • Prevent the use of not allowed date

About

Be Hodler Calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published