Let's understand how to set up the block explorer frontend. The block explorer will be a user interface with which we can interact with the blockchain from the browser. In order to build this user interface and make it functional, we need to use HTML, CSS, and JavaScript.
Now, instead of building all of the frontend by yourself, you can find an entire prebuilt frontend at the following link: https://github.com/PacktPublishing/Learn-Blockchain-Programming-with-JavaScript/blob/master/dev/block-explorer/index.html. We're not building the entire frontend in this section, because that's not the focus of this book.
To build the frontend, all you have to do is copy the file from the link provided and add that to the project's file structure. Now, go to the dev folder and create a new folder inside it, called block-explorer. Inside this...