4.19M

Express

1.

Express
EPAM RD Lab FE > FE Stream

2.

Leonid Nord
Software Engineer
Mail:
[email protected]
CONFIDENTIAL
2

3.

Regulations
6 lectures
3 homework assignments
Questions anytime
Initiative and involvement (Write to chat or raise
your hand)
CONFIDENTIAL
3

4.

Module overview
Node.js Intro, NPM, standard libraries;
Express.js framework;
Authorization, Authentication;
Homework assignment №1;
Databases, MongoDB;
Advanced MongoDB;
Building APIs, REST API, MVC;
Homework assignment №2;
Deploy, Docker;
Testing, code quality;
Files, Streams, 3rd party services, Email;
Socket.IO;
Homework assignment №3.
CONFIDENTIAL
4

5.

Agenda
QA
Modern WEB overview
Web architecture, Http
HTTP module
Express.js
QA
CONFIDENTIAL
5

6.

Q&A
CONFIDENTIAL
6

7.

Client-server architecture
• Client/server architecture is a
producer/ consumer computing
architecture where the server acts as
the producer and the client as a
consumer.
• The server houses and provides highend, computing-intensive services to
the client on demand.
• These services can include application
access, storage, file sharing, printer
access and/or direct access to the
server’s raw computing power.
CONFIDENTIAL
7

8.

Client-server architecture
Client/server architecture works
when the client computer sends a
resource or process request to the
server over the network connection,
which is then processed and
delivered to the client.
A server computer can manage
several clients simultaneously,
whereas one client can be connected
to several servers at a time, each
providing a different set of services.
In its simplest form, the internet is
also based on client/server
architecture where web servers serve
many simultaneous users with
website data.
CONFIDENTIAL
8

9.

Modern web applications
CONFIDENTIAL
9

10.

MPA vs SPA
CONFIDENTIAL
10

11.

MPA vs SPA
CONFIDENTIAL
11

12.

HTTP
The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information
systems.
This is the foundation for data communication for the World Wide Web (i.e. internet) since 1990.
HTTP is a generic and stateless protocol which can be used for other purposes as well using extensions of its request
CONFIDENTIAL
12

13.

URI and URL
Uniform Resource Identifier AND Uniform Resource Locator (Browser)
A Uniform Resource Identifier (URI) provides a
simple and extensible means for identifying a
resource (straight from RFC 3986). It’s just an
identifier; don’t overthink it.
A URI is an identifier.
A URL is an identifier that tells you how
to get to it.
CONFIDENTIAL
13

14.

Mime types
.css - text/css
.csv - text/csv
.gif - image/gif
.html - text/html
.js - text/javascript
.json - application/json
.txt - text/plain
.xml - application/xml Url encoded - application/x-www-form-urlencoded
CONFIDENTIAL
14

15.

CONFIDENTIAL
15

16.

CONFIDENTIAL
16

17.

CONFIDENTIAL
17

18.

CONFIDENTIAL
18

19.

CONFIDENTIAL
19

20.

CONFIDENTIAL
20

21.

CONFIDENTIAL
21

22.

CONFIDENTIAL
22

23.

CONFIDENTIAL
23

24.

CONFIDENTIAL
24

25.

CONFIDENTIAL
25

26.

CONFIDENTIAL
26

27.

CONFIDENTIAL
27

28.

CONFIDENTIAL
28

29.

CONFIDENTIAL
29

30.

CONFIDENTIAL
30

31.

CONFIDENTIAL
31

32.

CONFIDENTIAL
32

33.

Q&A
CONFIDENTIAL
33

34.

THANK YOU
FOR ATTENTION!
English     Русский Rules