# election **Repository Path**: docplus/election ## Basic Information - **Project Name**: election - **Description**: 一个去中心化的投票DApp,solidity版本为0.5.x - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-25 - **Last Updated**: 2022-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Election - 一个投票 DAPP Demo ## 依赖 安装依赖 - NPM: https://nodejs.org - Truffle: https://github.com/trufflesuite/truffle - Ganache: http://truffleframework.com/ganache/ - Metamask: https://metamask.io/ ## Step 1. 克隆代码 `git clone https://github.com/xilibi2003/election.git` ## Step 2. 安装依赖 ``` $ cd election $ npm install ``` ## Step 3. 启动Ganache ## Step 4. 编译部署合约 `$ truffle migrate --reset` You must migrate the election smart contract each time your restart ganache. ## Step 5. 配置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. 启动 `$ npm run dev` Visit this URL in your browser: http://localhost:3000 加我微信:xlbxiong 加我备注:DApp,进入DApp 开发互助讨论群,微信二维码: