Skip to content

This is a simple base project with nodejs for DApps development on Ethereum

Notifications You must be signed in to change notification settings

CodeMasterChef/nodejs-ethereum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a simple base project with nodejs for DApps development on Ethereum

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published