Ethereum Certificate DApp made for Pythonistas.
Clone the repository
git clone https://github.com/tr1sm0s1n/fastapi-brownie-dapp.git
cd fastapi-brownie-dapp
Create a virtual environment
python3 -m venv venv
Activate the environment
For Linux
source ./venv/bin/activate
For Windows PowerShell
.\venv\Scripts\Activate.ps1
Install Brownie
pip install eth-brownie
Compile the contract
brownie compile
Run a blockchain simulation (geth/hardhat/foundry) on port 8545.
Test the contract
brownie test
Deploy the contract
brownie run deploy_cert.py
Install FastAPI
pip install "fastapi[all]"
Start the application
uvicorn main:app --reload
Click here.
Click here.
Click here.