|
| 1 | +# Web3 Kamp - P1 - Local Installation |
| 2 | + |
| 3 | +Follow the [installation steps](https://docs.gno.land/getting-started/local-setup/installation) |
| 4 | +to install the tools necessary to complete the workshop. First verify the prerequisite requirements |
| 5 | +are installed before installing `gno`, `gnodev`, and `gnokey`. |
| 6 | + |
| 7 | +## Syntax highlighting |
| 8 | + |
| 9 | +This step is optional but convenient. We have a few [supported editor extensions](https://github.com/gnolang/gno/blob/master/CONTRIBUTING.md#environment) |
| 10 | +that enable gno syntax highlighting, including VSCode, ViM, emacs, and Sublime. |
| 11 | + |
| 12 | +## gnokey - the CLI wallet |
| 13 | + |
| 14 | +Let's generate a key pair. A key pair is what is used to sign transactions that are broadcast |
| 15 | +to the gno.land blockchain. In a real world context, they should not be shared. |
| 16 | + |
| 17 | +### add |
| 18 | + |
| 19 | +Add a new key by running `gnokey add <keyname>`. Choose whichever key name you'd like. Shorter is better |
| 20 | +since you'll have to type it at least a few times. A passphrase is optional and in our case unnecessary, so |
| 21 | +you can enter through this without typing anything. |
| 22 | + |
| 23 | +Notice the mnemonic phrase that is generated. In a real world scenario, you would want to record this |
| 24 | +and store it offline, ideally on a piece of paper or other method of offline storage for security. |
| 25 | + |
| 26 | +### list |
| 27 | + |
| 28 | +Run `gnokey list`. You should see that a key has been added with the specified name. |
| 29 | + |
| 30 | +## gnodev |
| 31 | + |
| 32 | +`gnodev` is a tool to more easily facilitate development on gno.land. It's basic features include: |
| 33 | + |
| 34 | +- spinning up an in-memory node |
| 35 | +- automatically deploying local packages to the chain |
| 36 | +- reloading packages when file changes are made |
| 37 | +- starting a web server using `gnoweb` to provide a UI |
| 38 | + |
| 39 | +From this directory, try running `gnodev .`. If successful, the last line should be `` --- READY ┃ I for commands and help, press `h` ``. |
| 40 | + |
| 41 | +## Setup complete! |
| 42 | + |
| 43 | +You've just set up a local gno.land development environment 🎉 |
| 44 | + |
| 45 | +To see the Hello World example in action, visit [localhost:8888/r/petnica/hello](http://localhost:8888/r/petnica/hello). |
0 commit comments