Installing Express.js

Now, we are going to use a library called Express.js to build a server or an API. Let's follow the below mentioned steps to install it:

  1. So, head over to Google, search for Express.js npm, and click on the first link ( https://www.npmjs.com/package/express ). This should take you to the following page:

  1.  We have to install it as a dependency, so we must run the following command in our terminal:

Now we have the Express library as a dependency in our project. 

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.