- Import dependencies via pip3:
pip3 install -r requirements.txt
- Run blockchain (Port 8000):
set FLASK_APP=blockchain.pyflask run --port 8000- Open http://127.0.0.1:8000/chain
- Whenever a block is mined, a dump of the chain is saved to
chain.json- When the server is restarted, this file is read to save the current chain state
- Run frontend client (Port 5002):
python3 server.py- Open http://127.0.0.1:5002
- Add a fish metadata
- Mint coin
- Visit http://127.0.0.1:8000/chain to see fish