An annotated example of creating a simple blockchain using Typescript.
npm install
to install the dependencies.
npm run compile
to compile the .ts files and start watching for changes.
npm run start
or node ./dist/blockchain.js
to execute the compiled code.