In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to configure the development environment of Yitaifang". The editor shows you the operation process through an actual case, and the operation method is simple, fast and practical. I hope this article "how to configure the development environment of Yitaifang" can help you solve the problem.
The following is deployed in the mac OS system, and other links have the same idea.
1. The environment of Yi Tai Fong
Visit https://golang.google.cn/ to download go1.11.darwin-amd64.pkg
Double-click next step to install golang
Second, intelligent contract environment
1. Install nodejs
Install the node-v10.8.0.pkg version of mac OS directly
2. Use Taobao image to install cnpm library address.
Command: sudo-s cnpm npm install-g cnpm registry= https://registry.npm.taobao.org
3. Install truffle
Command: sudo-s cnpm install-g truffle
4. Install local remix-ide
Command: sudo-s cnpm install remix-ide-g
Enter the command remix-ide to start after the run is over
Enter the address http://127.0.0.1:8080 in the browser to enter the built remix-ide without a network.
3. IDE integrated development environment
Recommend two kinds of development IDE,atom and vscode
1 、 atom IDE
Visit https://atom.io/ to download the latest mac version
2. Install the plug-in
Solidity Code highlight language-ethereum
Solidity automatically prompts autocomplete-solidity
Error check
Third, install the wallet
Development recommended to use MetaMask, MetaMask wallet not only supports the main network, but also supports test network and local network, and many smart contracts support MetaMask transactions, which is very convenient.
Local installation method:
Download is complete and unzipped, open the Chrome browser and load the extracted extension
Fourth, install the node tool Ganache
Geth takes a lot of time to synchronize all block data in Ethernet Fong and takes up a lot of disk space. In the development process, it is recommended to use the private chain Ganache of Taifang block chain to build nodes.
There are two installation methods:
First: visit the official website to download the corresponding operating system installer directly.
The results after running are as follows
Second: use the npm command to install the module npm install-g ganache-cli
-an or-accounts: specify the number of test accounts to be created at startup. -e or-defaultBalanceEther: the number of ether assigned to each test account. The default value is 100. -b or r-blockTime: specifies the blockTime for automatic mining, in seconds. The default value is 0, which means that automatic mining does not occur. -d or-deterministic: generates a fixed test account address based on a predetermined mnemonic (mnemonic). -n or-secure: all test accounts are locked by default, which is conducive to the signature of third-party transactions. -m or-mnemonic: mnemonic used to generate the address of the test account. -p or-port: sets the listening port. The default value is 8545. -h or-hostname: set the listening host. The default value is the same as server.listen () of NodeJS. -s or-seed: sets the seed for generating mnemonic words. .-g or-gasPrice: sets the Gas price. The default value is 20000000000. -l or-gasLimit: set the upper limit of Gas. The default value is 90000. -f or-fork: forks from a specified block of running ethernet node client software. The input value should be the HTTP address and port of the node, such as http://localhost:8545. Optionally, use the @ flag to specify a specific block, for example: http://localhost:8545@1599200. -I or-networkId: specify the network id. The default value is the current time, or use the network id of the forked chain. -db: sets the directory where the chain data is saved. If there is already chain data in the path, ganache-cli will use it to initialize the chain instead of recreating it. -debug: outputs the VM opcode for debugging. -mem: outputs ganache-cli memory usage statistics, which replaces standard output information. -noVMErrorsOnRPCResponse: failed transactions are not sent as RCP errors. Turn on this flag to make error reporting compatible with other node clients, such as geth and Parity. This is the end of the content about "how to configure the development environment of Etay Square". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.