pip install -r requirements.txt
python run_app.py
export FLASK_APP=node_server.py flask run --port 8000
export FLASK_APP=node_server.py $ flask run --port 8001
export FLASK_APP=node_server.py $ flask run --port 8002
curl -X POST
http://127.0.0.1:8001/register_with
-H 'Content-Type: application/json'
-d '{"node_address": "http://127.0.0.1:8000"}'
curl -X POST
http://127.0.0.1:8002/register_with
-H 'Content-Type: application/json'
-d '{"node_address": "http://127.0.0.1:8000"}'
-
Unless any blocks in the blockchain are mined, users will see default page with no tweets
-
User can write, attach an image to the post and can tweet it, Unless the users in chain mines the block the post is not published
-
Users can mine the post/block in the chain to publish the tweets
-
Post once mined is visible to all the users registered with this application