Skip to content

rodrigorsdev/r2.eth.election

Repository files navigation

R2 Election (Factory contract)

Requeriments

Usage

Compile contracts

truffle compile

After running, contract information — including ABI — will be available at the build/contracts/ directory.

Run Dapp

Start blockchain, I use ganache-cli

ganache-cli

Clone repository

git clone https://github.com/rodrigorsdev/r2.eth.election.git

Install dependencies

npm install

Deploy ElectionFactory contract

truffle migrate

Start dapp

npm run dev

Run tests

truffle test

To run tests within a specific file:

truffle test <file_path>

Deploy contracts

Create .env file on root with:

MNENOMIC = // Your metamask's recovery words
INFURA_API_KEY = // Your Infura API Key after its registration

Run migrate command

truffle migrate --network <network_name>

Contract address and transaction ID will be shown on screen.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published