Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 899 Bytes

File metadata and controls

37 lines (24 loc) · 899 Bytes

Zome Developer Setup

This folder has an example DNA for the contacts zome. The actual code for the zome is in zomes/contacts.

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.

All the instructions here assume you are running them inside the nix-shell at the root of the repository. For more info, see the developer setup.

Building

CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
hc dna pack workdir/dna
hc app pack workdir/happ

This should create a workdir/happ/sample.happ file.

Testing

After having built the DNA:

cd test
npm install
npm test

Running

After having built the DNA:

hc s generate workdir/happ/sample.happ --run=8888

Now holochain will be listening at port 8888;