Download nodejs from https://nodejs.org/download/
Select Windows Installer 64 bit
Once installed , open command prompt and get ready.
navigate to nodeLearn by writing cd nodeLearn in command prompt
write npm install express --save and press enter in command prompt
write npm install -g express-generator and press enter in command prompt
This will install the express framework using which we will be able to make a simple webapp
Write this command in command prompt
express nodeLearn
this should create a folder in the current folder you currently are in command prompt
navigate to nodeLearn by writing cd nodeLearn in command prompt
write npm install and hit enter in command prompt
once installed, we are ready to launch
write npm start
your nodejs server would start
open a browser and point http://localhost:3000/
you would see welcome to express screen. Voila ! You have done it.
Select Windows Installer 64 bit
Once installed , open command prompt and get ready.
navigate to nodeLearn by writing cd nodeLearn in command prompt
write npm install express --save and press enter in command prompt
write npm install -g express-generator and press enter in command prompt
This will install the express framework using which we will be able to make a simple webapp
Write this command in command prompt
express nodeLearn
this should create a folder in the current folder you currently are in command prompt
navigate to nodeLearn by writing cd nodeLearn in command prompt
write npm install and hit enter in command prompt
once installed, we are ready to launch
write npm start
your nodejs server would start
open a browser and point http://localhost:3000/
you would see welcome to express screen. Voila ! You have done it.
No comments:
Post a Comment