This project was created by Chris Podivinsky as a part of his SOC work (soc.pdf). It's purpose is to demonstrate how blockchain works (or could work) implemented into electricity commerce.
Here is a video that introduces the whole project including the app (in Czech with English subtitles): https://www.youtube.com/watch?v=mIEM4X9-wqY
- Download all the code from this repository.
- Make sure you have python3 installed (not a too old version).
- Make sure everything from the requirements.txt file is installed (virtual environment recommended).
- For one-node use:
- Choose one of the blockchain_5003.py or blockchain_5004.py files and change all the the port numbers in the file in your IDE to be the same (5003 if you have chosen the blockchain_5003.py file or 5004 if you have chosen the blockchain_5004.py file). Also, if you have chosen the blockchain_5004.py file, delete the line 29 (
from blockchain_5003 import users
), copy the user database from the blockchain_5003.py file (class users
) and paste it to your blockchain_5004.py file after theapp.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
line. - Open one tab in your browser and type localhost:5003 or localhost:5004 depending on which file you have chosen.
- Choose one of the blockchain_5003.py or blockchain_5004.py files and change all the the port numbers in the file in your IDE to be the same (5003 if you have chosen the blockchain_5003.py file or 5004 if you have chosen the blockchain_5004.py file). Also, if you have chosen the blockchain_5004.py file, delete the line 29 (
- For two-nodes use:
- Split the terminal in your IDE and run the blockchain_5003.py and blockchain_5004.py file at the same time.
- Open two tabs in your browser, one for localhost:5003 and the other for localhost:5004.
- Enjoy the app!
Using some parts of the app is very intuitive and the app itself includes a user manual, so don't worry, download and try it to yourself!
24 May 2021 update:Unfortunately, the offers aren't being removed after someone takes advantage of them or delete them. This probably won't be fixable up to 12 June 2021; so please excuse this small mistake.
27 August 2021 update: Some of the offer issues have been solved. However, ome features still aren't 100% functional.