Upgrade to Pro — share decks privately, control downloads, hide ads and more …

node.js #TechLunch

node.js #TechLunch

node.js
2013/12/04 (水) @ Livesense TechLunch
発表者:劉 俊峰

E60aa4f80303f3f386898546ddb3686a?s=128

Livesense Inc.
PRO

April 21, 2014
Tweet

Transcript

  1. Node.js ]

  2. S \

  3. 1. )A3AELZ  Javascript

  4. 2. *@'=,>.0 3. 1A4?.%@' I/O 4. !6@/5A=

  5. None
  6. None
  7. var http = require('http'); var fs = require('fs'); var server

    = http.createServer(function(req, res) { fs.readFile('contents.file', function(error, contents) { res.writeHead(200,{'Content-Type':'text/plain; charset=utf-8'}); res.write(contents); res.end(); //^V }); }); server.listen(3000);
  8. 5. < =-!7 5<(A* :@

  9. 8+9A=

  10. http 8+9A= http )A3A&;! @/L[ND 

  11. domain 8+9A= Node.js FUT #;A$4+"&/,?A#;A !6@/`JPGSKHC#;A2@0 <@'QYND 8+9A=

  12. socket.io < =-!7 Web 5<(A*:@_U 8+9A=   )A3A&;! @/BO;!4;<ND

    WebSocket WHMIY 
  13. RX