election
所属分类:以太坊
开发工具:JavaScript
文件大小:368KB
下载次数:0
上传日期:2022-06-24 07:30:17
上 传 者:
sh-1993
说明: 去中心化以太坊投票应用教程
(A Decentralized Ethereum Voting Application Tutorial)
文件列表:
bs-config.json (68, 2019-01-16)
build (0, 2019-01-16)
build\contracts (0, 2019-01-16)
build\contracts\Election.json (64194, 2019-01-16)
build\contracts\Migrations.json (31852, 2019-01-16)
contracts (0, 2019-01-16)
contracts\Election.sol (1245, 2019-01-16)
contracts\Migrations.sol (493, 2019-01-16)
migrations (0, 2019-01-16)
migrations\1_initial_migration.js (129, 2019-01-16)
migrations\2_deploy_contracts.js (123, 2019-01-16)
package-lock.json (99489, 2019-01-16)
package.json (331, 2019-01-16)
src (0, 2019-01-16)
src\css (0, 2019-01-16)
src\css\bootstrap.min.css (121200, 2019-01-16)
src\css\bootstrap.min.css.map (542194, 2019-01-16)
src\fonts (0, 2019-01-16)
src\fonts\glyphicons-halflings-regular.eot (20127, 2019-01-16)
src\fonts\glyphicons-halflings-regular.svg (108738, 2019-01-16)
src\fonts\glyphicons-halflings-regular.ttf (45404, 2019-01-16)
src\fonts\glyphicons-halflings-regular.woff (23424, 2019-01-16)
src\fonts\glyphicons-halflings-regular.woff2 (18028, 2019-01-16)
src\index.html (2497, 2019-01-16)
src\js (0, 2019-01-16)
src\js\app.js (3744, 2019-01-16)
src\js\bootstrap.min.js (37045, 2019-01-16)
src\js\truffle-contract.js (258815, 2019-01-16)
src\js\web3.min.js (141091, 2019-01-16)
test (0, 2019-01-16)
test\election.js (3814, 2019-01-16)
truffle.js (281, 2019-01-16)
# Election - DAPP Tutorial
Build your first decentralized application, or Dapp, on the Ethereum Network with this tutorial!
Full Free Video Tutorial:**
https://youtu.be/3681ZYbDSSk
## 2019 Updated Code
https://github.com/dappuniversity/election/tree/2019_update
Follow the steps below to download, install, and run this project.
## Dependencies
Install these prerequisites to follow along with the tutorial. See free video tutorial or a full explanation of each prerequisite.
- NPM: https://nodejs.org
- Truffle: https://github.com/trufflesuite/truffle
- Ganache: http://truffleframework.com/ganache/
- Metamask: https://metamask.io/
## Step 1. Clone the project
`git clone https://github.com/dappuniversity/election`
## Step 2. Install dependencies
```
$ cd election
$ npm install
```
## Step 3. Start Ganache
Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance. See free video tutorial for full explanation.
## Step 4. Compile & Deploy Election Smart Contract
`$ truffle migrate --reset`
You must migrate the election smart contract each time your restart ganache.
## Step 5. Configure Metamask
See free video tutorial for full explanation of these steps:
- Unlock Metamask
- Connect metamask to your local Etherum blockchain provided by Ganache.
- Import an account provided by ganache.
## Step 6. Run the Front End Application
`$ npm run dev`
Visit this URL in your browser: http://localhost:3000
If you get stuck, please reference the free video tutorial.
近期下载者:
相关文件:
收藏者: