Download and install node.jsCreate a folder and CD into that folder using using node.js command promptrun the command npm initTo install and use expressjs ( Fast, unopinionated, minimalist web framework for Node.js ), run the command npm install express --saveCreate a new file and name it server.js (code is attached at the end of this post). Add the code (Server.JS File Code), in this file.To run the node.js app, run the command node server.jsVisit http://localhost:3000/ to see the results Extra Packages: To automatically restart the server, install supervisor package (nodemon can also be used) by running the command npm install npm...
forward
Recent Comments
Archives
- November 2024
- July 2021
- December 2020
- November 2020
- September 2020
- August 2020
- July 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- October 2019
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- March 2017
- January 2017
- December 2016
- November 2016
- October 2016
- June 2015
- May 2015
- April 2015