background preloader

Javascript Serveur-side : Node-Js

Facebook Twitter

Node.js. An example: Webserver This simple web server written in Node responds with "Hello World" for every request. To run the server, put the code into a file example.js and execute it with the node program from the command line: % node example.js Server running at Here is an example of a simple TCP server which listens on port 1337 and echoes whatever you send it: var net = require('net'); var server = net.createServer(function (socket) { socket.write('Echo server\r\n'); socket.pipe(socket);}); server.listen(1337, '127.0.0.1'); Featured Node.js at Walmart Eran Hammer, Principal Architect at Walmart, talks about how they use Node.js as a way to reinvent legacy APIs to create modern front end experiences. LearnBoost/node-canvas - GitHub. Jed/fab - GitHub. Fab @ jsconf.eu '10 : un album.