以太坊开发环境配置

以太坊开发环境配置

  • 准备一台服务器
    如阿里云服务器,预装Ubuntu系统。本文阿里云Ubuntu 16.04。SSH链接。
  • 开发环境配置
#更新
sudo apt update
sudo apt upgrade

#安装Git
sudo apt install git

#安装curl
sudo apt install curl

#安装nodejs
sudo apt install -y nodejs
sudo apt install -y nodejs-legacy
#测试nodejs、node版本
nodejs -v
node -v

#安装npm
sudo apt install npm
#测试npm版本
npm -v

#安装solcjs
sudo npm install -g solc solc-cli --save-dev
 -  参考:https://solidity.readthedocs.io/en/latest/installing-solidity.html
 -  此处安装的是solcjs编译器而不是solc,其他软件比如geth需要solc支持。

#测试solcjs
solcjs --help

#安装solc二进制包
sudo apt-get install software-properties-common
 -  说明:部分新服务器需要此语句支持ppa
sudo add-apt-repository ppa:ethereum/ethereum
sudo add-apt-repository ppa:ethereum/ethereum-dev
sudo apt-get update
sudo apt-get install solc
#测试solc
solc --help

#安装ganache-cli
sudo npm install -g ganache-cli
 -  (npm install -g ethereumjs-testrpc)
 -  (testrpc已改名为ganache-cli,testrpc过期不用)

#安装truffle
sudo npm install -g truffle@3.4.5
 - 参考:https://github.com/trufflesuite/truffle/issues/448
 - 说明:sudo npm install -g truffle  最新版容易出问题
 - 可行版本:3.2.1   3.4.5
 - 卸载方法:npm uninstall -g truffle

#测试truffle
truffle version

#安装web3
npm install web3
#测试web3.js
 - 参考:http://web3.tryblockchain.org/

#安装Geth
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
 -  参考:https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu
 -  Geth 又名Go Ethereum. 是以太坊协议的三种实现之一,由Go语言开发,完全开源的项目。
#测试Geth
geth version
geth --help

  • 编程相关链接
    1.ganache-cli
    https://github.com/trufflesuite/ganache-cli
    http://truffleframework.com/docs/
    2.solidity
    http://solidity.readthedocs.io/en/latest/
    https://github.com/ethereum/solidity/
    https://github.com/ethereum/solc-js
    http://www.tryblockchain.org/ (中文)
    3.以太坊开发框架Truffle说明书
    http://truffleframework.com/
    http://truffle.tryblockchain.org/ (中文)
    4.以太坊开发框架Dapp说明书
    https://dapp.readthedocs.io/en/latest/
    5.web3.js
    https://github.com/ethereum/web3.js/
    http://web3.tryblockchain.org/
    6.Mist
    Mist的功能包括保存以太币、发送交易、部署合约等。
    你可以用它实现与区块链平台或测试网络 的交互。
    当你需要进行快速交易时超级有用。
    https://github.com/ethereum/mist
    7.GETH & ETH
    Command line tools for the Ethereum Network
    Geth除了实现Mist的全部功能,还包含一些额外的重要特性,例如提供RPC API接口给应用程序以便你的应用可以通过它连接如以太坊网络。
    https://www.ethereum.org/cli
    8.parity
    https://www.parity.io/
    9.metamask
    https://metamask.io/
    10.nodejs教程
    http://www.runoob.com/nodejs/nodejs-tutorial.html
    11.ethereum
    https://ethereum.org/
    https://github.com/ethereum/
    12.remix
    无需服务器端组件,集编译器和Solidity运行时环境的基于浏览器的IDE
    http://remix.ethereum.org/
    13.Ethereum Homestead Documentation
    http://www.ethdocs.org/en/latest/index.html
    14.以太坊官方推荐开发框架Meteor说明书
    https://github.com/ethereum/wiki/wiki/Dapp-using-Meteor

  • 其他链接
    1.以太坊网络状态(官方)
    https://ethstats.net/
    2.以太坊应用资源
    http://ether.fund/
    3.以太坊网络状态
    https://etherscan.io/
    4.Ethereum Wiki
    https://github.com/ethereum/wiki/wiki’
    5.以太坊官方博客
    https://blog.ethereum.org/
    6.以太坊中文爱好者网站
    http://ethfans.org/
    7.以太坊的官方论坛
    https://forum.ethereum.org/
    8.blockapps
    https://blockapps.net/
    9.12个以太坊区块链最佳开发工具
    http://blog.csdn.net/shebao3333/article/details/79413536
    10.以太坊各个项目介绍及以太坊常用网址
    http://blog.sina.com.cn/s/blog_6b4044e60102x9a5.html

  • 以上


以太坊开发环境配置_第1张图片

你可能感兴趣的:(区块链)