Setting up Express.js

Let's start building our API or our server to interact with our blockchain data structure. We will be building our API in a new file that we will put into our dev folder. Let's create a new file and call it api.js; this is where we will build our entire API:

Get Learn Blockchain Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.