Holochain Workshop

HOLOCHAIN

————————————————————————

@see  developer.holochain.org/start.html

@see  github.com/holochain/holochain-rust/releases/tag/v0.0.18-alpha1

@see  github.com/Holochain/holochain-proto/wiki/Docker-Usage

@see  github.com/holochain/holochain-rust/blob/v0.0.18-alpha1/cli/README.md

@see  github.com/holochain/holochain-rust/blob/v0.0.18-alpha1/conductor/README.md

======================================================

cd ~ && ll
mkdir --parents ~/apps/ceptr/holochain/src/ && cd ~/apps/ceptr/holochain/src/
git clone https://github.com/holochain/holochain-rust.git
cd ~/apps/ceptr/holochain/src/holochain-rust/ && ll
sudo ./scripts/install/auto.sh
cd .. && ll

[

 // Takes forever!

sudo ~/apps/ceptr/holochain/src/holochain-rust/docker/run

]

 // Just in case something has fucked up the permissions in the home directory:

sudo chown <UserName>:<GroupName> -R /home/<UserName>
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2019-01-24
rustup target add wasm32-unknown-unknown

 // N3h networking component already covered by general setup script since version 0.0.12alpha1!

¬wget https://github.com/holochain/n3h/archive/v0.0.11-alpha1.zip && ...

 // ZeroMQ also not required any longer.

sudo apt-cache show libzmq3-dev
cd ~/apps/ceptr/holochain/ && wget --quiet --output-document=tmp.tar.gz https://github.com/holochain/holochain-rust/releases/download/v0.0.18-alpha1/cli-v0.0.18-alpha1-x86_64-generic-linux-gnu.tar.gz && tar -xf tmp.tar.gz && rm tmp.tar.gz && clear && ll
mv cli-* hc && ll
cd ~/apps/ceptr/holochain/ && wget --quiet --output-document=tmp.tar.gz https://github.com/holochain/holochain-rust/releases/download/v0.0.18-alpha1/conductor-v0.0.18-alpha1-x86_64-generic-linux-gnu.tar.gz && tar -xf tmp.tar.gz && rm tmp.tar.gz && clear && ll
mv conductor-* holochain && ll
./hc/hc --version
./holochain/holochain --version

//

 // Pathifying the two binaries above:

find ~ -type f -name .bash_profile
echo 'export PATH="$HOME/apps/ceptr/holochain/hc:$HOME/apps/ceptr/holochain/holochain:$PATH"' >> ~/.bash_profile
cat ~/.bash_profile
source ~/.bash_profile
echo $PATH

 // Testing the two binaries again:

hc --version
holochain --version
mkdir ~/apps/ceptr/holochain/happs/

 // Pathifying the two binaries above:

find ~ -type f -name .bash_profile
echo 'export PATH="$HOME/apps/ceptr/holochain/hc:$HOME/apps/ceptr/holochain/holochain:$PATH"' >> ~/.bash_profile
cat ~/.bash_profile
source ~/.bash_profile
echo $PATH

 // Testing the two binaries again:

hc --version
holochain --version
mkdir ~/apps/ceptr/holochain/happs/


Holochain Chat

cd ~/apps/ceptr/holochain/happs/
wget https://github.com/holochain/holochain-basic-chat/archive/develop.zip -O basic-chat.zip
unzip basic-chat.zip
rm basic-chat.zip
mv holochain-basic-chat* holo-chat
cd holo-chat
mkdir -p dna
cd dna-src
hc package --strip-meta -o ../dna/holo-chat.hcpkg
cd .. && ll
cd ui-src
npm install
npm run build
cd ..
ll
ls -lahF
hc keygen
nano my-conductor-config.toml

Blooniverse DevCamp documentation

Leave a Comment