/blockchain-example

Playaround with blockchain in Javascript / node.js

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

blockchain-example

Playaround with blockchain in Javascript / node.js

Installation

  • npm i

Development run

Client and Server should be run in different terminals.

Client

npm start

Server

  • Build server: npm run server:ts
  • Run server: npm run server:run or press F5 in VSCode
  • Run unit test for server: npm run server:test

Debugging

Client

Start the server, using Chrome devtools Sources to search for TS files and set breakpoints in them.

Server

Set a breakpoint in ./server/*.ts. In VScode press F5.

Bundle for production

  • npm run build

References