Running hREA Backend
These are instructions for doing set up, and running, of a holochain runtime on your device containing the hREA hApp, for the sake of a development environment.
Before trying to develop a user interface or service on top of hREA, you need to be running the hREA backend, within a holochain runtime.
Download the hrea_suite.happ file from this hREA release.
You need to install some packages to your command line, which you can do manually, or via the nix-shell dev environment manager. There are instructions for either way that you choose right below this, just click to expand the section you would like to follow.
With Nix-shell
Without Nix-shell
Set up a holochain development "sandbox". A temporary directory on your file system that will store all your keys and data for the hREA happ that you are about to install and run. network quic is there to instruct holochain to use a specific kind of networking, known as quic.
hc sandbox create -n 1 -d hrea_tester network quic
Install the hREA hApp to your holochain sandbox. Make sure you use the right path to wherever on your filesystem you have hrea_suite.happ file that you downloaded.
hc sandbox call install-app-bundle ./hrea_suite.happ
Start your holochain "sandbox" runtime, attaching a port for websocket networking, on the networking port 4000.
hc sandbox run --all --ports 4000
You can safely stop and restart this particular process, and don't have to rerun the other steps. This is the process that you must have running in order to develop a user interface or service with an hREA backend.
Copy link