#in cmd for localhost
- set FLASK_APP=node_server.py
- flask run --port 8000
#in another cmd
- python run_app.py
#for online sharing
- ngrok.exe http 5000
Start a blockchain node server,
# Windows users can follow this: https://flask.palletsprojects.com/en/1.1.x/cli/#application-discovery
$ set FLASK_APP=node_server.py
$ flask run --port 8000
One instance of our blockchain node is now up and running at port 8000.
Run the application on a different terminal session,
$ python run_app.py
The application should be up and running at http://localhost:5000.
Here are a few screenshots
- Posting some content
- Requesting the node to mine
- Resyncing with the chain for updated data