際際滷

際際滷Share a Scribd company logo
NODE.JS
Vitor Casadei
II SorocabaJS - 14/11/2015
Vitor Casadei
Web Developer
Computer Scientist
Works @ CESAR
github.com/vcasadei
fb.com/vcasadei
casadei.io
What is Node.js?
 Server-side JavaScript
 Runs on Linux, Windows, Mac OS & most other major
operating systems
 Asynchronous I/O
 Swiss army knife
 Open Source =)
Why Node?
 It is light!
 It is fast!
 It is easy!
 Big community!
 It is fast to code and easy learn!
 It is JavaScript!
 Supports nearly 1 mi concurrent connections!
To npm, or not to npm
 Node Package Manager
 Manages dependencies
 In JavaScript
 Comes with Node.js
$ npm install <anything>
Example - creating simple http server
MEAN
express.js
"Fast, unopinionated, minimalist web framework for
Node.js"
 Makes everything easier!
 More flexible!
$ npm install express
express.js - Hello World
mongoDB
High performance, noSQL, document-oriented db
 Works great with Node.js!
 JSON documents
$ npm install mongoose
mongoDB - Dog
mongoDB - Dog
The app - To-do app
 Must:
 create
 delete
 check
 list to-do items
 Only Back-end
Let's code!

More Related Content

NodeJS and MEAN stack - II SorocabaJS