Ethereum project manual – 以太坊项目手册区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Ethereum project manual – 以太坊项目手册区块链毕设代写 是一篇很好的国外资料

Ethereum project manual

Ethereum project manual: Git, Node, Solidity…

Table of contents

  • Prerequisites
  • Using Git
  • Starting a new project
  • Example project
  • Working with an existing project

Prerequisites

  • Git
    • Git for Windows
    • Git for Linux:
    sudo apt-get install git 
    • or GitHub Desktop
  • Node.js & npm
    • Node 8 for Windows
    • Node 8 for Linux:
    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y build-essential sudo apt-get install -y nodejs 
    • Execute once to install Web3, only in Windows, as administrator:
    npm install --global --production windows-build-tools  
  • Visual Studio Code
    • Visual Studio Code for Windows/Linux/Mac
    • Ethereum Solidity Language plugin for Visual Studio Code

Using Git

Command Description
git init Creates a new local repository
git clone <url> Downloads an entire repository via URL
git status Show modified files in working directory
git diff [filename] Shows file differences not yet staged
`git add [-u] [filename .
git commit [-m "message"] Records file snapshots permanently in version history
git push origin master Uploads all local branch commits to GitHub
git pull origin master Downloads and incorporates changes from GitHub

Using Version Control in Visual Studio Code

Git workflow

以太坊eth项目手册” style=”max-width:100%;” alt=”Ethereum project manual – 以太坊eth项目手册”>

Starting a new project

Create a new project folder

mkdir projectname cd projectname 

Create a package.json file

npm init 

Install solc (Solidity compiler), Mocha (JavaScript test framework), Ganache (personal Ethereum blockchain), Web3 (Ethereum JavaScript API), and truffle-hdwallet-provider(HD Wallet-enabled Web3 provider) npm modules, saving this dependencies to package.json file

npm install --save solc mocha ganache-cli web3@1.0.0-beta.26 truffle-hdwallet-provider 

Initialize a new Git local repository

git init 

Add GitHub remote repository

git remote add origin https://github.com/secomuib/projectname.git 

Example project

  • package.json file
  • .gitignore file
  • compile.js file
  • test.js file
  • deploy.js file

Working with an existing project

Clone an exisiting GitHub repository

git clone https://github.com/secomuib/projectname.git cd projectname 

Install all modules listed as dependencies in package.json

npm install 

Deploy contract: npm start or node deploy.js

Execute test: npm test or mocha


以太坊eth项目手册

以太坊eth项目手册:Git,Node,Solidity。。。在Visual Studio代码中使用版本控制包.json文件

目录

  • 先决条件
  • 使用Git
  • 启动新项目
  • 示例project使用现有项目:sudo apt get install Git or GitHub Desktop节点.js&amp;npm Node 8 for Windows Node 8 for Linux:curl-sLhttps://deb.nodesource.com/setupu 8.x|sudo-E bash-sudo apt get install-y build essential sudo apt get install-y nodejs执行一次以仅在Windows中安装Web3,作为管理员:npm install–global–production Windows build tools针对Windows的节点8针对Linux的节点8执行一次以仅在Windows中安装Web3,作为管理员:
  • Visual Studio Code Visual Studio Code for Windows/Linux/Mac Ethereum Solidity Language用于Visual Studio Code的插件

先决条件

  • Visual Studio Code for Windows/Linux/Mac
  • 编译.js文件
  • Visual Studio Code
    • Visual Studio Code for Windows/Linux/Mac
    • Ethereum Solidity Language plugin for Visual Studio Code

使用Git工作流

Command Description
git init 创建新的本地存储库
git clone&lt;url&gt; 通过URL下载整个存储库
git status 在工作目录中显示修改过的文件
git diff[filename] 显示尚未暂存的文件差异
`git add[-u][filename
git commit[-m“message”] 在版本历史记录中永久记录文件快照
git push origin master 将所有本地分支提交上载到GitHub
git pull origin master 从GitHub下载并合并更改

安装solc(Solidity compiler)、Mocha(JavaScript测试框架)、Ganache(个人以太坊eth区块链blockchain)、Web3(以太坊ethJavaScript API),和truffle hdwallet provider(支持HD Wallet的Web3 provider)npm模块,将此依赖项保存到包.json文件

启动新项目

初始化新的Git本地存储库

示例项目

添加GitHub远程存储库

mkdir projectname cd projectname 

克隆现有GitHub存储库

npm init 

安装中列为依赖项的所有模块包.json

npm install --save solc mocha ganache-cli web3@1.0.0-beta.26 truffle-hdwallet-provider 

部署契约:npm启动或节点部署.js执行测试:npm测试或摩卡咖啡

git init 

Add GitHub remote repository

git remote add origin https://github.com/secomuib/projectname.git 

使用现有项目

  • package.json file
  • .gitignore file
  • compile.js file
  • test.js file
  • deploy.js file

Working with an existing project

Clone an exisiting GitHub repository

git clone https://github.com/secomuib/projectname.git cd projectname 

Install all modules listed as dependencies in package.json

npm install 

Deploy contract: npm start or node deploy.js

Execute test: npm test or mocha

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/20030.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Ethereum project manual – 以太坊项目手册区块链毕设代写

提供最优质的资源集合

立即查看 了解详情