We can run our web application on custom port which can be provided by
the developer, here we can check that that the provided port is working on not.
Pre-requiste Installation
NodeJS
1. Install npm install express
2. Create server.js file
var
express = require('express');
var
app = express();
app.use(express.static(__dirname
+ '/www'));
app.listen('3000');
console.log('working
on 3000');
3. In parallel root folder, create www folder
4. Put index.html or
application folder inside www folder, refer below image:
5. Start server by typing node server.js in command prompt.
6. open
localhost:3000
and index.html code will execute.
Happy Coding :)
Thanks for such a nice words :) Web Hosting in Pakistan
ReplyDeleteThanks for such a nice words :) Web Hosting in Malaysia
ReplyDeleteToday's Best article. It really helps me to enhance my skills.
ReplyDeleteAWS Training in Chennai
DevOps Training in Chennai
Java Training in Chennai
AngularJS Training in Chennai
German Classes in Chennai
German Language Classes in Chennai
German Language course in Chennai
Thank you :)
DeleteThank you :)
ReplyDeleteThanks, foг ones marvelous posting! I genuinely enjoyed reading it, you miggһt Ƅe a great author. I wiⅼl made certain to booҝmark your blog and ѡill often come back sometime soon. I want to encoᥙrage yourself to continue your great job, have a nice evening!
ReplyDeleteWeb Development Course
best web development courses
web development classes
web development course near me
Web Development Training
training on web development
web development training program
web development training course
web development summer training
This is why it is better that you should linked review before developing. It is possible to post superior send that way. Logo Designer
ReplyDeletethue hosting Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though.
ReplyDeleteRegular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you! Ceh training
ReplyDelete