🪂 Detailed instructions: SETUP.md
| Package | Version |
|---|---|
node |
20.11.90 |
pnpm |
9.15.5 |
docker |
27.3.1 |
- Install the dependencies listed above in Requirements, verify correct version.
- Clone the repo
git clone git@github.com:ArchetypalTech/mud-pie.git- Go to cloned directory
cd mud-pie- Install dependencies
pnpm installMake sure Docker deamon is running.
Navigate to the mud-pie/fluent/ dir
cd fluentThen run:
pnpm mud:dev:localcontracts is DOWN, navigate to contracts and press the r key to reset the process and wait for all transactions to finish before using the counter button.
pnpm mud:dev:local:intelPoint your browser at http://localhost:3000 to see the running client.
After running the scripts you will have to manually close the docker.
Stop the containers with:
docker stop $(docker ps -q --filter ancestor=ghcr.io/fluentlabs-xyz/fluent:latest)or using pnpm
pnpm mud:dev:stopsee ./fluent/DEV-NOTES.md for some troubleshooting tips.
To clean up the local nodes state
rm -rf fluent/.local-nodeOn an Intel Mac mprocs must be installed seperately:
brew install mprocsThe commands open a mprocs terminal with the running processes.
Use the up and down arrows to see the output from each process and Ctrl-U/Ctrl-D to scroll through the respective outputs
Your increment counter clicks show up as transactions on the block explorer.
Your MUD fluent deploy is working! Congrats.
the following scripts are avilable via pnpm from the fluent directory:
| Script | Description |
|---|---|
mud:dev:local |
runs a local Fluent node, builds contracts, deploys for node, runs local web server |
mud:dev:testnet |
builds contracts, deploys for testnet, runs local web server |
mud:dev:stop |
stops the running local fluent node container |
mud:dev:local:intel |
(for intel macs) runs a local Fluent node, builds contracts, deploys for node, runs local web server |
mud:dev:testnet:intel |
(for intel macs) builds contracts, deploys for testnet, runs local web server |
Deployment to Testnet requires setting the correct keys in .env packages/contracts/.env and packages/client/.env.
You will also need to change the VITE_CHAIN_ID var in packages/client/.env packages/client/.env to reflect the chain id for the chain (1337 for local and 20993 for the fluent testnet)
Navigate to the mud-pie/fluent/ dir, then run:
pnpm mud:dev:testnetmud:dev:testnet:intelPoint your browser at http://localhost:3000 to see the running client.
Navigate to the mud-pie/fluent/ dir, then execute:
pnpm mud:test
