Running multiple instances of networkNode.js

The next thing that we will want to do is run multiple instances of networkNode.js. To do that, we are going to add a few more commands to the package.json file:

  1. To begin with, in the package.json file, we must change the "start" command to "node_1". Now, when we run this command, it's going to start our first node, which is on port 3001. Let's give this a try.
  1. Save the file, go to your terminal, and cancel the previous process by typing ^C%. After doing this, instead of typing npm start,  type npm run node_1. With the help of this command, run our node_1 on port 3001

All we really did in ...

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.