Bacalhau WebUI
Dependencies
You will need to install all the dependencies in the .tool-versions
file.
asdf install
Then install corepack which you'll need for the latest yarn version.
npm install -g corepack
corepack prepare yarn@latest --activate
Install all yarn dependencies
yarn install
Spinning up the Dashboard for Development:
For spinning up & testing the dashboard with the API connection to the bacalhau network you can run:
cd webui
yarn run build
cd..
make build
./bin/$(go env GOOS)/$(go env GOARCH)/bacalhau serve --node-type=requester,compute --peer=none --web-ui
The above will spin up your own bacalhau cluster. This will use the default port 1234
. Visit http://127.0.0.1/
to see WebUI.
Interaction with Bacalhau
In bacalhau.ts
you will find Bacalhau API configuration.
webui.go
serves as a web server to deliver the webui (React code), handling both the serving of static assets embedded in the binary and dynamic routing for client-side navigation.
Learn More
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.