The Fedimint UI enables you to administer your Guardian from the browser. Once you're running an instance of fedimintd, you can use the UI to connect to this instance and run the setup process.
If you would like to contribute to this project then please take a look at our CONTRIBUTING licence first.
Using Docker Desktop is a quick and easy way to get started. Run the following commands:
docker image pull --platform linux/amd64 fedimintui/fedimint-ui:0.5.0
docker run -p 3000:3000 --platform linux/amd64 fedimintui/fedimint-ui:0.5.0
The --platform linux/amd64
flag is typically only required if you're using a Mac with an M chip.
You can now navigate to http://localhost:3000
in your browser and connect to your fedimintd service.
You can also run the UI from source locally. Clone the repo using the following command:
git clone [email protected]:fedimint/fedimint-ui.git fedimint-ui
Then install the npm packages by running the following command from the root directory:
yarn
And to launch the project on localhost in your browser run:
yarn dev
For more advanced options and to learn how to spin up a Fedimint developer environment see here https://github.com/fedimint/fedimint/blob/master/HACKING.md and https://github.com/fedimint/fedimint/blob/master/docs/tutorial.md.
The docker containers and devimint are for specific releases or commits of fedimint/fedimint
. At present, the reference commit-hash is 6da8ff595d1373e24f365d750872bd588fda17c9
If you would like to run the UIs against a particular version of fedimint, or using changes you have made locally to fedimint itself:
- Run
cargo build
in fedimint - Run
env DEVIMINT_BIN=$(realpath ../fedimint/target-nix/debug) yarn nix-guardian
(assuming that you haveui
andfedimint
repos checked out in the same directory)
This will put binaries in fedimint/target-nix/debug
at the front of your $PATH
. Devimint will use these binaries instead of the ones installed via Nix.
You can officially bump the referenced version of Fedimint using the following steps:
-
Locate a desired hash from Fedimint
-
Find and replace all instances of the current reference commit hash:
6da8ff595d1373e24f365d750872bd588fda17c9
-
Run
nix flake update
at the root of the repo -
Restart your nix shell and validate the reference, then commit to complete bump