lightningrodlabs / treepeople

a hApp for recording visits to trees

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Treepeople

A happ for recording visits to trees.

Environment Setup

PREREQUISITE: set up the holochain development environment.

Enter the nix shell by running this in the root folder of the repository:

nix-shell
npm install

Run all the other instructions in this README from inside this nix-shell, otherwise they won't work.

Running 2 agents

npm start

This will create a network of 2 nodes connected to each other and their respective UIs. It will also bring up the Holochain Playground for advanced introspection of the conductors.

Running the backend tests

npm test

Bootstrapping a network

Create a custom network of nodes connected to each other and their respective UIs with:

npm run network 3

Substitute the "3" for the number of nodes that you want to bootstrap in your network. This will also bring up the Holochain Playground for advanced introspection of the conductors.

Packaging

To package the web happ:

npm run package

You'll have the treepeople.webhapp in workdir. This is what you should distribute so that the Holochain Launcher can install it. You will also have its subcomponent treepeople.happ in the same folder`.

Documentation

This repository is using these tools:

About

a hApp for recording visits to trees


Languages

Language:Handlebars 58.8%Language:Rust 21.7%Language:TypeScript 17.5%Language:HTML 1.0%Language:Nix 0.6%Language:JavaScript 0.4%