A simple demo of blockchain concepts in Python based on micro-framework Flask and Flask-SocketIO in order to enable client-server communications.
Clone the project
$ git clone https://github.com/NoriakiMawatari/Blockchain.git
Once located on the Blockchain directory, create a virtual environment,
$ cd Blockchain
$ python -m venv venv
Make sure to activate the virtual environment,
$ source venv/bin/activate
Install the dependencies,
$ pip install -r requirements.txt
Finally, run the following command:
(venv) $ python run.py
(venv) $ python -m pytest
In order to visualize each test instead of only displaying dots, you can run:
(venv) $ python -m pytest -v