Macbook (Intel)
More details, please see Macbook (M1)
Step 1. Install Nix
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
Step 2. Restart terminal
Step 3. Edit the /etc/nix/nix.conf file
sudo nano /etc/nix/nix.conf
Step 4. Be sure these lines are all inside the file
build-users-group = nixbld
experimental-features = nix-command
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=volume
Step 5. Restart computer
Step 6. Clone the plutus apps repo
git clone https://github.com/input-output-hk/plutus-apps
Step 7. Go to plutus directory
cd plutus-apps/
Step 8. Build the plutus playground
Step 8.1. Build server
nix-build -A plutus-playground.server
Step 8.2. Build client
nix-build -A plutus-playground.client
Step 9. Fire up nix-shell
This may take a while first time around.
nix-shell
Step 10. Start plutus server
cd plutus-playground-server
plutus-playground-server
Step 11. Fire up a second nix-shell (i.e., in a second terminal)
This should now be quicker since all hooks are up to date.
nix-shell
Step 12. Update npm
npm install -g npm
You may have to run this command using sudo.
Step 13. Start plutus client
cd plutus-playground-client
npm run start
Step 14. That's it. Open your browser and navigate to https://localhost:8009/ to compile and evaluate your hello plutus.
This guide copy-paste from Tilman Dingler's github.
Last updated
Was this helpful?