Setup ​
- If you haven't already, install the nix package manager with:
bash
sh <(curl -L https://nixos.org/nix/install) --daemon
bash
sh <(curl -L https://nixos.org/nix/install)
And follow along its instructions and prompts.
- Add the appropriate nix caches to your environment:
bash
nix run nixpkgs#cachix use holochain-ci
nix run nixpkgs#cachix use darksoil-studio
WARNING
p2p Shipyard relies heavily on nix
to achieve reproducible environments. Unfortunately, nix
does not support Windows. If you have a Windows OS, you will need to install Windows Subsystem Linux and run all the steps in this guide inside of its environment.
Creating an app with p2p Shipyard ​
p2p Shipyard apps use holochain as their underlying distributed platform.
- If you don't have one already, create a new holochain app with:
bash
nix run github:darksoil-studio/scaffolding#hc-scaffold-happ -- web-app
- Enter the newly created folder, and add support for cross-platform binaries with:
bash
nix run github:darksoil-studio/tauri-plugin-holochain#scaffold-tauri-happ
That's it! Now you have the skeleton of a peer-to-peer app. You can now move on to designing your app.