Wriju's BLOG

.NET, Cloud and everything

How to make a startup page in Node.JS

In a typical Node.JS project you may have many JavaScript files. And running them from your command prompt you may need to explicitly type the name of the file.

$ node app.js

Instead in development we can get rid of this by creating startup page. To do that we need to add a line in package.json

By doing so we now can simply run the below command to start out Node.JS project

$ npm start