forked from OffchainLabs/arbitrum-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
21,440 additions
and
2,533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
exclude: | | ||
(?x)( | ||
^packages/arb-avm-cpp/external/keccak/| | ||
^packages/arb-bridge-eth/installed_contracts/ | ||
) | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3.6 | ||
- repo: git://github.com/doublify/pre-commit-clang-format | ||
rev: master | ||
|
||
hooks: | ||
- id: clang-format | ||
- repo: git://github.com/dnephin/pre-commit-golang | ||
rev: master | ||
hooks: | ||
- id: go-fmt | ||
- repo: https://github.com/prettier/prettier | ||
rev: "" # Use the sha or tag you want to point at | ||
hooks: | ||
- id: prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,52 @@ | ||
|
||
# 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 | ||
|
||
|
||
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/ | ||
|
||
- 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. | ||
|
||
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. | ||
|
||
- 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. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.