Demo web application to demonstrate how to use FELT npm package to integrate federated learning into your web application.
create .env
file from .env.example
and fill in your Infura project id
yarn install # install dependencies
yarn dev # start the server
The most important part is FELT library @feltlabs/react
from which we use:
initializeApp
function to initialize the library with your API keyStartTraining
component to start the training processDisplayJobs
component to display started jobs