Читать книгу Creation and Deployment of Smart Contracts on Ethereum Blockchain - Dr. Hidaia Mahmood Alassouli - Страница 5
4. How to setup or install Ethereum on Windows
ОглавлениеInstall chocolatey on windows . Go to "https://chocolatey.org/install" and copy window command or simply run below command to install chocolatey on windows
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Run below command to install Node Js
choco install nodejs.install –y
Or simply download the installer from "https://nodejs.org/en/download/" link
Install Git. To install either run below command
choco install git –y
Or download the installer from "https://gitforwindows.org/" link.
Install Visual Studio Code along with solidity extension. To install either run below command
. choco install VisualStudioCode –y
Or download the installer from "https://www.visualstudio.com/downloads/" link
Install Python on Windows. To install either run below command
choco install python –y
Or download the installer from "https://www.python.org/downloads/" link.
Open the visual studio consol. Go to extensions page. Install the solidity extension
Install Python on Windows. To install either run below command
choco install python –y
Install Ganache on Windows. Download the installer from below link. http://truffleframework.com/ganache/
Or install it from command line
npm install –g ganache -cli
What is ganache.When you develop application, that application will be held in application server. In case of Ethereum, the Ethereum blockchain will hold the smart contract. The blockchain is acting as application server. Ganache is simulation blockchain that runs locally in the system and simulate the Ethereum blockchin for you. It comes as GUI or command line.
When you run ganache, you will see this image. You see many ether addresses. Each ether address has some ethereum on it.
Remix is IDE used to build smart contract. Remix web based IDE https://remix.ethereum.org
Install IDE from git or npm using below command npm
install remix-ide -g remix-ide git clone https://github.com/ethereum/remix-ide...
cd remix-ide
npm install
npm run setupremix
npm start