Intro to backend development with Express

Keywords

client

requests services and information from the server. Typically, a client is a computer application, such as a web browser.

dependencies

Other code libraries that your project relies on. These are usually listed in your project's package.json file.

endpoint

The part of the URL which comes after /. For example: /chocolate is the "chocolate" endpoint.

fs

A core Node.js module for interacting with the file system on your computer.

GET

An HTTP method for fetching data. Read more here

handler function

A function that receives requests and tells the server how to respond to them.

JSON

A format for storing and transporting data. Read more here.

method

Method is another name for a function

middleware

Functions in Express that run before the final request handler. A nice article explains in more depth here.

module

a bit of reusable code, written by you or someone else, that can be imported into a Node.js project using require

npm

npm is a "package manager" for Node.js, meaning it allows you to easily install external modules (or chunks of code) published by others and use them in your project.

package.json

The file used to store information about a Node.js project, such as its name and its dependencies.

POST

An HTTP method for sending data. Read more here.

port

a number that serves as an endpoint, determining where you can access your web application.

repository

A place that code lives. You often hear people talk about Git/Github repositories.

request

the message sent via HTTP from the client to the server, asking for information

require

require is used in Node.js to import functionality from another file or an external module

response

the data sent back to the client from the server after an HTTP request is made.

route / routing

The definition of application endpoints and how they respond to client requests.

server

A software application which handles HTTP requests sent by the client, like web browsers, and returns web pages and information in response

static assets

Files such as HTML, CSS and JavaScript documents or images that you want to appear in the browser.