inspired by: https://github.com/satwikkansal/python_blockchain_app/
Implementation of a minimalistic blockchain P2P network and display/search via the provided blockchain explorer
pip install hug Flask requests
oder
pip install -r requirements.txt
- hug - microframework for simplified API development
- Flask - web development framework
- requests - HTTP library for python
Project/
|---Explorer/
| |---static/img/
| | |---dice.svg
| |---templates/
| | |---*.html
| |---app.py
|---Node/
| |---src/
| | |---blockchain.py
| | |---util.py
| |---node.py
|---architecture.drawio.png
|---readme.md
|---requirements.txt
Navigate in a terminal to /Explorer
and type python app.py
to start the Flask server on localhost:5000
.
Navigate to /Node
and type python node.py 8000
to start a node on localhost:8000
. The port number can be changed but the initial Node has to be on 8000!
The nodes represent and endpoint/app for mining and utilising the blockchain. The explorer is simply there to have a look at what is currently on the blockchain.