This repository is designed to be coded following this guide.
To change the code, you can work either opening VSCode inside the root folder of the repo or in this folder, you should have rust intellisense either way. It is recommended to use the rust-analyzer
VSCode extension.
- Having
nix-shell
installed. - Have
holochain-run-dna
installed globally, and thelair-keystore
described in its README as well.
Run this before running any command in this readme:
$(nix-build https://holochain.love --no-link -A pkgs.holonix)/bin/holonix
This will setup your environment to be able to execute holochain.
CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
dna-util -c todo_rename_zome.dna.workdir/
After having built the DNA:
cd test
npm install
npm test
After having built the DNA:
holochain-run-dna todo_rename_zome.dna.gz
Now holochain
will be listening at port 8888
;
Restart the command if it fails (flaky holochain start).