다음을 통해 공유


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

Namoskar!!!

Comments

  • Anonymous
    October 23, 2016
    Thanks a lot. This is what I was searching for. Thanks for saving my time.
    • Anonymous
      October 26, 2016
      Glad it helped you