GUEHDS is a portal for managing and interacting with a Federated Network powered by PySyft. The portal's user interface (UI) is built using Shiny for Python.
Install the project dependencies by running the following command:
poetry install
Note: Run all commands from the federated_network
directory. You should have already followed the test setup guide for blockchain-api.
-
Make sure you install the project dependencies as detailed above with
poetry install
. -
Create a
.env
file in the root of the project with the following content, by copying the.env.example
file:cp .env.example .env
-
Setup
/etc/hosts
:Add the following entries to your
/etc/hosts
file:127.0.0.1 auth.local.promptly.health 127.0.0.1 guehds.local.promptly.health 127.0.0.1 syft.local.promptly.health 127.0.0.1 blockchain.local.promptly.health
-
To start the PyGrid domain network, run the following command:
poetry run hagrid launch domain
This will launch a PyGrid domain at
http://syft.local.promptly.health
. Make note of the name (in green in the CLI) that is given to the node, as you will need it for cleanup later. -
Start the Docker Containers
To set up and start the necessary services, run the following command:
docker compose up -d
To interact with the portal as a Data Owner, access the portal at http://guehds.local.promptly.health
and login with the following credentials:
- Username:
[email protected]
- Password:
changethis
Explore and interact with the federated network as a Data Scientist by following the examples available in the notebooks directory.
You can start a jupyter notebook server by running:
poetry run jupyter notebook --no-browser
You can clean up the setup by doing the following:
-
Run
docker compose down --volumes
to clear federated network containers. -
Run
./remove_pysyft.sh [YOUR_PYSYFT_NODE_NAME]
to clear pysyft containers (you may need to runchmod +x ./remove_pysyft.sh
). -
Remove the added entries from your
/etc/hosts
file. -
Follow the clean up guide on blockchain-api.
For local development, you can run the GUEHDS Portal locally, the rest of the services will be running in Docker containers.
To start the GUEHDS Portal web app, use:
uvicorn governance_ui.app:app
The web app will be accessible at http://guehds.local.promptly.health
.