Skip to content

make dapp rest api

kimhunjin edited this page May 29, 2018 · 2 revisions

development environment

  • os (windows10)
  • node.js (v8.11)
  • npm (v5.6)
  • python (v3.6.5)
  • c++
  • solidity (v0.4.18)

needs

  • MetaMask (chrome extension tool)
  • twitter

install

npm install express-generator -g // install express framework

make MetaMask ID

  1. add a MetaMask in the chrome extension tool.

  2. sign up MetaMask

Warning : Do not forget your password and meta mask seed

  1. sign in MetaMask

  2. join infura (infura)

remember your code (started with https://rinkeby.infura.io/~~)

  1. join faucet (faucet)

  2. sign in your twitter

  3. posted your ethereum address
    Requesting faucet funds into on the #Rinkeby #Ethereum test network.

  4. copy the post's URL and paste in faucet

start

express myapp // make my app with express

cd myapp

npm install // package install

npm install truffle-hdwallet-provider --save // using truffle

npm install web3 --save // using web3.js

cd router

vi index.js

Clone this wiki locally