close

Learning Programming NodeJS From Code School! Level 1

Node.JS : Allows you to build scalable network applications using JavaScript on the server-side.

You can use Node.JS to build Websocket Server • Fast File Upload Client • Ad Server • Any Real-Time Data Apps etc

Node.JS is not A Web Framework     not  • For Beginners   not • Multi-threaded

<<Hello Dog>>

var http = require('http');

http.createServer(function(request, response){
    response.writeHead(200);
    response.write("Hello, this is dog");
    response.end();
}).listen(8088,function(){
    console.log('Listening on port 8088');
});

$ node hello.js

$ curl http://localhost:8088

 

 

 

 

 

arrow
arrow
    文章標籤
    NodeJS
    全站熱搜

    asdppp2001 發表在 痞客邦 留言(0) 人氣()