We will now be deploying the application that we created in the previous section. We will do so by starting a development blockchain, configuring our deployment, deploying our smart contracts, and building the application.
Firstly, we are going to want to run our development blockchain. This can be done by typing ganache-cli
in the terminal window. Your screen will look as follows:
Make sure you jot down or remember the localhost port number. It is of importance, as you will be connecting to it in the later stages of this project. Ganache-cli
generates 10 available accounts and then the corresponding private keys. These private keys are used to encrypt the transactions that are being sent from each individual account. At the bottom, you will see a Mnemonic
. These twelve words are very important. Always remember to save these words because you will require them to import your private keys and the same accounts into MetaMask...