This repo demonstrate how to build a block chain app implementing basic functionalities to initiate the chain, mine and retrieve blocks, validate the chain. The app is wrapped into an API.
- python
- poetry
pip install poetry #Linux
or
brew install poetry #Macos
# Navigate to your local folder
cd /your/local/folder
# Clone the WindML repository
git clone git@github.com:marcodigennaro/blockchain.git
# Enter the folder
cd blockchain/
# Create the python environment from the pyproject.toml file
poetry install
# Activate the python environment
source .venv/bin/activate
# Run tests
poetry run pytest -v
# Start Jupyter Lab
jupyter-lab
# Start the API
uvicorn api.api:app --reload