Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 552 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 552 Bytes

nodeserver

Ethereum projects

After clone/download from this code, install pakages:

npm install

Run testrpc in other terminal tab/window:
testrpc

Deploy smart contract into testrpc:
truffle migrate --reset

Build WebApp:
truffle build

Run Node.js server:
nodejs build/node/server.js

Run vent listener
nodejs build/node/listen.js

Interact with server:
curl -X PATCH http://localhost:8080/sendOneTo/accAddress
curl -X PATCH http://localhost:8080/balance/accAddress