From Event to Action: Accelerate Your Decision Making with Real-Time Automation
[Blibli Brown Bag] Nodejs - The Other Side of Javascript
1. NODEJS – THE OTHER SIDE OF JAVASCRIPT
By Irfan Maulana
Presented for Brown Bag at Blibli.com
2. ABOUT ME
• Name : Irfan Maulana
• Join at Blibli : October 2015
• Role : SDE – Front End Developer
• Project : SEOUL aka Blibli.com main website
• Has been code Javascript for at least 2 years
3. WHAT IS NODEJS ?
• JavaScript runtime built on Chrome's V8
JavaScript engine.
4. MAN BEHIND
• Initiate by Ryan Dahl (github.com/ry)
• from 2015 handled by Node.js Foundation
5. WHAT IS DIFFERENT ?
FRONT BACK
NODEJS IS JAVASCRIPT, BUT IN DIFFERENT SIDE
6. NODEJS OFFER
• Lightweight server
• Near Real-Time Speed
• Non-Blocking I/O with Event-Loop
• NPM (like Ruby GEM)
• Javascript Isomorphic
• Thousand Third Party Library
• Growth community and documentation
7. MOST POPULAR NPM MODULE
• Express : web development framework
• Connect : extensible HTTP server framework,
serves as base express
• Socket.io and sockjs : websockets component
• Jade : templating engine
• Mongo and Mongojs : Mongodb wrapper
• Redis : Redis client library
• Coffe-script : CoffeScript compiler
• Underscore : utility library
• Forever : utility for ensuring node script runs
continously
8. YOU SHOULD USE NODEJS
• CHAT
• API
• QUEUED INPUT
• MONITORING DASHBOARD
• SERVER-SIDE WEB APPLICATION
14. USING EXPRESS GENERATOR
• Express generator : express <package>
• Run : SET DEBUG=<package>:* & npm start
• Default run in : http://localhost:3000/