BED intro ( Express.js Basics: Building Your First Backend Server)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

flashcard set

Earn XP

Description and Tags

How Modern Web Apps Work? Understanding it with the 3 Layer Model. The Request–Response Model: The glue of the 3 Layers Model Exercise: Create your first "Hello World" Server Exploring Express Routes Reflection & Review Path Parameters ("Dynamic Routes") Query Parameters Sending Requests using Bruno API client (instead of the browser)

39 Terms

1
New cards

What is front-end development?

Building the parts of a website that users see and interact with.

2
New cards

What are the three main front-end languages?

HTML, CSS and JavaScript


3
New cards

What is back-end development?

Building server-side logic that processes requests and manages data.

4
New cards

What is Node.js?

A runtime that allows JavaScript to run outside the browser.

5
New cards

What is Express.js?

A Node.js framework for building web servers and APIs

6
New cards

What does an HTTP GET request do?

Requests data from a server.

7
New cards

What is a database?

An organised collection of data that can be stored and retrieved.

8
New cards

What does SQL stand for?

Structured Query Language.

9
New cards

What is a primary key?

A column or set of columns that uniquely identifies each row.

10
New cards

What is the Request–Response Model?

A communication process where a browser sends a request to a server, and the server sends back a response.

11
New cards

What are the three layers of a web application?

Frontend (Browser), Backend (Server), and Database.

12
New cards

What is the role of the browser in the Request–Response Model?

To send requests to the server and display the responses received.

13
New cards

What is the role of the server in the Request–Response Model?

To receive requests, process them, interact with the database if needed, and send responses.

14
New cards

What is the role of the database in the Request–Response Model?

To store information and retrieve data when requested by the server.

15
New cards

What is a request?

A message sent from the browser to the server asking for information or an action.

16
New cards

What is a response?

A message sent from the server back to the browser containing data, a web page, or an error message.

17
New cards

What is the first step of the Request–Response Cycle?

The browser sends a request to a website address.

18
New cards

What happens after the server receives a request?


The server determines what the request requires and processes it.

19
New cards

When does the server interact with the database?

When it needs to retrieve information to fulfil a request.

20
New cards

What happens after the server finishes processing a request?

It sends a response back to the browser.

21
New cards

What is the final step of the Request–Response Cycle?

The browser receives the response and displays the result to the user.

22
New cards

What are three possible types of server responses?

A web page, data, or an error message.

23
New cards

Does every server request require database interaction?

No. The server only interacts with the database when necessary.

24
New cards

What does URL stand for?

Uniform Resource Locator.

25
New cards

What is the purpose of a URL?

To specify the address of a website or resource on the internet.

26
New cards

What are the four main components of a URL covered in the lesson?

Protocol, Domain, Port, and Path.

27
New cards

What is a protocol in a URL?

It specifies how communication takes place, such as HTTP or HTTPS.

28
New cards

What is a domain in a URL?

The address used to identify a website or server, such as google.com.

29
New cards

What is a port number?

A number identifying where a server program is listening for requests.

30
New cards

What is a path in a URL?


The part of a URL that identifies a specific resource, such as /hello

31
New cards

What does localhost mean?

The computer you are currently using.

32
New cards

In http://localhost:3000/hello, what does 3000 represent?

The port number the server is listening on.

33
New cards

What does req represent in Express.js?

The incoming request received by the server from the browser.

34
New cards

What does res represent in Express.js?

The outgoing response sent by the server back to the browser.

35
New cards

Specifies the resource being requested, such as /hello.

36
New cards
37
New cards
38
New cards
39
New cards