You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brew update
brew install nodejs
#using npm
npm install ethereumjs-testrpc [email protected] solc
node_modules/.bin/testrpc
#alternatively, using yarn
yarn add ethereumjs-testrpc [email protected] solc
#bonus: https://web3js.readthedocs.io/en/1.0/web3-utils.html
yarn add web3-utils
#why [email protected]? because web3 is not working#see https://github.com/ethereum/web3.js/issues/1070#check if it is working by running:
node_modules/.bin/testrpc
Setup: Truffle
#using npm
npm install -g truffle
truffle compile
#using yarn (locally)
yarn add truffle
node_modules/.bin/truffle compile
#deploy locally (testRPC must be running in another terminal)
truffle migrate --network local#deploy to testnet https://ropsten.etherscan.io/
truffle migrate --network dev
#console
truffle console --network local
Running: node as web server
#run server.js to get api running ("http://localhost:3000")
node_modules/.bin/nodemon server.js
#run node web server
npm run dev
yarn run dev