Skip to content

tr1sm0s1n/fastapi-brownie-dapp

Repository files navigation

FastAPI-Brownie-DApp

Ethereum Certificate DApp made for Pythonistas.

🛠 Built With

Python Badge FastAPI Badge Vyper Badge Brownie Badge Bulma Badge

⚙️ Run Locally

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

📜 License

Click here.

🎗️ Contributing

Click here.

⚖️ Code of Conduct

Click here.