How to Start Node.js on Windows
Posted By: Hem On Monday, November 7, 2011 Under: Node.js
Node.js is the Server-Side Javascript Programming Environment It is initial in stage with latest release version of Node-v0.6.0. It uses Javascript language which is easy to understand and deploy in both Server side and Client side.
More info are given on the slides presented by me on Aug 3,2010
http://semicolondev.com/semicolon-labs-introduction-to-node-js
http://www.scribd.com/doc/61537463/Introduction-to-Node-Js
Step 1. Download the file "node .exe" from http://nodejs.org/dist/v0.6.0/node.exe. Its just less than 5 Mb
Step 2. Save the file. Lets do it on "e:/node" folder.
Step 3. Create a new file -Lets say "server.js" on same location and Add the following Codes
Step 4. Now open the "Command Prompt" and type 'node file_name' i.e "node server.js"
step 5. Click on 'Allow access', then Open the browser and type the link http://localhost:8000
(note: Press Ctrl+C to terminate the server)
Isn't it Easy???
Enjoy Coding.......
More info are given on the slides presented by me on Aug 3,2010
http://semicolondev.com/semicolon-labs-introduction-to-node-js
http://www.scribd.com/doc/61537463/Introduction-to-Node-Js
or You can log on to the official site http://nodejs.org , http://no.de,
Node tutorial is available on http://nodebeginner.org
Run Node server in the windows pc within few steps
Step 1. Download the file "node .exe" from http://nodejs.org/dist/v0.6.0/node.exe. Its just less than 5 Mb
Step 2. Save the file. Lets do it on "e:/node" folder.
Step 3. Create a new file -Lets say "server.js" on same location and Add the following Codes
var http = require('http'); http.createServer(function(req,res){ res.writeHead(200,{'Content-Type':'text/html'}); res.end(' <h1>Hello World!! Your HTML text goes Here</h1> '); }).listen(8000); console.log('Server running at http://localhost:8000');
Step 4. Now open the "Command Prompt" and type 'node file_name' i.e "node server.js"
step 5. Click on 'Allow access', then Open the browser and type the link http://localhost:8000
(note: Press Ctrl+C to terminate the server)
Isn't it Easy???
Enjoy Coding.......