How to install Solidity
Before we can get started, you’ll need to download the following tools:
Then install them all on your computer. This shouldn’t take long. Once you have successfully installed everything, we need an extension for Visual Studio to run Solidity.
So that we can get started, create an empty folder called Truffle on your desktop. Then go to Visual Studio and open this folder via File -> Open Folder. Then you need to download a test environment that we can work with. To do this, type the following command into the terminal (Use the View > Terminal menu command):
npm install truffle -g
If you receive an error message, simply restart Visual Studio and try it again. This time it hopefully will work.
It gives us the tools we need to create Smart Contracts and Dapps with Solidity. It also gives us a test environment for our Smart Contracts.
Now we need Ganache. It’s a local Blockchain for developing and testing Blockchain code.
Here are 10 Ethereum accounts with 100 exemplary Ethers each which of course have no value.
The last thing we need is MetaMask as a browser extension. In order to use the Blockchain we just downloaded, we have to connect to it somehow. Therefore download the corresponding browser extension, depending on which browser you are using.
Optional: Highlighting code helps a lot with programming, so we need a text editor. It is of course optional and does not have to be downloaded. You can find the link here.