Blockchain-Tang-FishCoin
Setup
- Import dependencies via pip3:
pip3 install -r requirements.txt
Run
- Run blockchain (Port 8000):
set FLASK_APP=blockchain.py
flask 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
Demo
- Add a fish metadata
- Mint coin
- Visit http://127.0.0.1:8000/chain to see fish