Skip to content

An app demonstrating electricity trade in a system based on blockchain (part of my SOC work).

Notifications You must be signed in to change notification settings

chris-webst/blockchain_demonstrator

Repository files navigation

Chris's blockchain demonstrator

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

A quick installation guide

  1. Download all the code from this repository.
  2. Make sure you have python3 installed (not a too old version).
  3. Make sure everything from the requirements.txt file is installed (virtual environment recommended).
  4. For one-node use:
    1. 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 the app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False line.
    2. Open one tab in your browser and type localhost:5003 or localhost:5004 depending on which file you have chosen.
  5. For two-nodes use:
    1. Split the terminal in your IDE and run the blockchain_5003.py and blockchain_5004.py file at the same time.
    2. Open two tabs in your browser, one for localhost:5003 and the other for localhost:5004.
  6. Enjoy the app!

A quick user manual

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.

About

An app demonstrating electricity trade in a system based on blockchain (part of my SOC work).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published