This is a simple base project with nodejs for DApps development on Ethereum
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
test
.gitignore
compile.js
deploy.js
package-lock.json
package.json
readme.md

readme.md

Install packages

npm install

Config Mnemonic env variable:

Copy Mnemonic on Metamask extension. If you forgot it, you can reset it on Settings/Reveal Seed Words. enter image description here

On Windows 10, open PowerShell (not cmd) and use bellow command:

$env:MNEMONIC='12 words of your mnemory'

Config Infura URL env variable:

Register Infura URL on https://infura.io/

Check email to receive Infura URL.

On Windows, open PowerShell and use bellow command:

$env:INFURA_URL="https://rinkeby.infura.io/yourgeneratedcode"

Compile contract:

node ./compile.js

Run unit test:

npm run test

Deploy to Rineby Test Net:

node ./deploy.js

Make sure you that: You switched to Rineby Test Net on Metamask and you must have a account with Ethers. You can use https://faucet.rinkeby.io/ to request some Ethers.