Last active
May 27, 2023 15:56
-
-
Save johnshearing/bd0af7e364cbc40e8aecffd34b61e3b5 to your computer and use it in GitHub Desktop.
Setup Plutus Pioneers 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From the Ubuntu command line, remove the any previous PPP lesson materials or in the alternative just create a new clean directory. | |
Then delete all containers inside the Docker Desktop or just leave them alone if you wish to use previous installations also. | |
Then reboot computer. | |
Docker Desktop should restart automatically. | |
Sync your fork of the Plutus Pioneers Program repository. | |
From the Ubuntu command line, clone the synced fork into your Ubuntu environment. | |
From the Ubuntu command line cd to the newly cloned plutus-pioneers-program directory. | |
Then type code . to open VS Code. | |
Then a dialog will ask if you want to reopen the project from within Docker. Say yes. | |
Register port 8000 using the Port menu item next to the Terminal menu item. | |
Now working at the terminal from within VS Code | |
Then run `cd code` | |
Then run `cabal update` | |
Then run `cabal build all` | |
Then run `serve-docs` | |
You will see a dialog box asking if you want to open the docs in the browser. Answer yes. | |
The browser will open with all the documentation. | |
Open a new terminal window from within VS Code. | |
Following along with the video PPP 040305 - Offchain Code with Lucid at 1 minute and 37 seconds, do the following: | |
Run `cd Code` | |
Run `cd Week03` | |
Run `cd lucid` | |
Run `su root -c "chown -R $(id -u):$(id -g) /workspace/code/Week03/lucid"` | |
Run `npm install` | |
Run `npm start` | |
You should see the Lucid dAPP running in your browser. | |
If you don't see the Lucid dAPP running in your browser then you will see a dialog box asking if you want to open it in the browser. | |
Answer yes and the dAPP will pop open in your browser. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment