Skip to content

Instantly share code, notes, and snippets.

@ariady-putra
Created August 21, 2022 13:24
Show Gist options
  • Select an option

  • Save ariady-putra/25af068ec95ca06de0c7d5b7d8c1bf3a to your computer and use it in GitHub Desktop.

Select an option

Save ariady-putra/25af068ec95ca06de0c7d5b7d8c1bf3a to your computer and use it in GitHub Desktop.

Ubuntu

Prerequisites

sudo apt-get update
sudo apt-get install snap git nano curl

Install nix if not already

sh <(curl -L https://nixos.org/nix/install) --daemon

Verify prerequisites

nix --version
git --version
nano --version

Copy IOHK Binary Cache

sudo mkdir -p /etc/nix
sudo nano /etc/nix/nix.conf

/etc/nix / nix.conf :

substituters = https://cache.nixos.org https://hydra.iohk.io
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=

Clone Plutus

git clone https://github.com/input-output-hk/plutus-apps.git

cd ~/plutus-apps
git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a

Configure nix-shell

sudo nano /etc/nix/nix.conf

/etc/nix / nix.conf :

experimental-features = nix-command flakes

Run plutus-playground-server

Open a new terminal window:

cd ~/plutus-apps
nix-shell

From nix-shell:

cd plutus-playground-server
cabal update
plutus-playground-server

Run plutus-playground-client

Open a new terminal window:

cd ~/plutus-apps
nix-shell

From nix-shell:

cd plutus-playground-client
cabal update
npm start

https://localhost:8009

Serve docs

Open a new terminal window:

cd ~/plutus-apps
nix-shell

From nix-shell:

build-and-serve-docs

http://localhost:8002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment