Steps to setup the developer environment are given below, git and python (3.8+ recommended) are required.
-
Clone this repository
git clone <repository-url> cd bitnode
-
Create a Virtual Environment (Optional)
python3 -m venv .venv source .venv/bin/activate # Linux or MacOS source .venv/bin/activate.bat # Windows
-
Install requirements
pip install -r requirements-dev.txt
-
To run the web app, run the following command inside bitnode folder
cd bitnode uvicorn main:app
or use aditional options
uvicorn main:app --reload --host 0.0.0.0 --port 5000