Interactive Powerpoint_How to Master effective communication
Node, express & sails
1.
2. Covering
● What is Node
● What makes Node
● What is NPM
● Why all this?
...
3. Hands on!
● Node.js: Hello world (cli & web)
● Express.js: Hello world
● Sails.js: Hello world
● Build a Rest API
● Test the API
● Use the API
4. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
5. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It's all about non-blocking,
asynchronous architecture
6. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It's all about non-blocking,
asynchronous architecture
This means any activity taking
a long time to finish, such as
file access, network requests,
and database operations, are
requested and put aside until the
results are ready and returned
7. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
Easy setup & code
8. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
9. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
10. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
11. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
12. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
13. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
14. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
Just 1
15. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
It is the server!
Just 1
But if your app crashs it
will bring down the server
16. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
No polling..
just callbacks
= FAST but out of order
17. What is Node?
Node.js® is a platform built on
Chrome's JavaScript runtime for:
● easily building fast,
● scalable network applications.
Node.js uses an:
● event-driven,
● non-blocking I/O model
that makes it lightweight and efficient, perfect for
data-intensive real-time applications that run
across distributed devices.
No headaches with
multithreaded async I/O
20. What is
Node page manager
NPM is a package manager for JavaScript, and is
installed by default for Node.js.
21. What is
Node page manager
NPM is a package manager for JavaScript, and is
installed by default for Node.js.
NPM runs through the command line and manages
dependencies for an application.
22. What is
Node page manager
NPM is a package manager for JavaScript, and is
installed by default for Node.js.
NPM runs through the command line and manages
dependencies for an application.
23. What is
Node page manager
NPM is a package manager for JavaScript, and is
installed by default for Node.js.
NPM runs through the command line and manages
dependencies for an application.
It also allows users to install Node.js applications
that are available on the npm registry.