Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .vscode/dictionaries/code-entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ congres
connectionavailable
contentaccessible
contentdelete
contentoccluded
contentvisibilityautostatechange
controlslist
cookiechange
Expand Down Expand Up @@ -575,6 +576,7 @@ ontextformatupdate
ontextupdate
onuncapturederror
onvalidationstatuschange
onvisibilitymaskchange
onwebkitmouseforcewillbegin
onzoomlevelchange
opendocument
Expand Down Expand Up @@ -790,6 +792,7 @@ testingbot-api
texlive
texlive-fontsextra
textformatupdate
TEXTPATH_SIDETYPE
textupdate
TEXTUREI
thickmathspace
Expand Down Expand Up @@ -837,6 +840,7 @@ urlsidebar
urpmi
usedtx
useinbandfec
useraction
usercontext-content
userhash
userproximity
Expand All @@ -860,6 +864,7 @@ viewsource.css
VIRTUALENVWRAPPER
virtualkeyboardpolicy
virtuals
visibilitymaskchange
VK_CRSEL
VK_EREOF
VK_EXSEL
Expand Down
2 changes: 2 additions & 0 deletions .vscode/dictionaries/proper-names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ Giorgio
Golightly
Googlebot
Gordo
Gorman
Grahl
Grande-Dixence
Graywolf9
Expand Down Expand Up @@ -620,6 +621,7 @@ Tonisha
Transcribear
Transfonter
Transformiix
Treanor
Trekhleb
Trint
Trish
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/glossary/browser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Common browsers include:
- Browser download links:
- [Apple Safari](https://www.apple.com/safari/) (Safari is not a downloadable browser)
- [Google Chrome](https://www.google.com/chrome/)
- [Microsoft Edge](https://www.microsoft.com/en-us/edge)
- [Microsoft Edge](https://explore.microsoft.com/en-us/edge)
- [Mozilla Firefox](https://www.firefox.com/en-US/)
- [Opera Browser](https://www.opera.com/)
- Related glossary terms:
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/glossary/imap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ IMAP (Internet Message Access Protocol) is a {{Glossary("protocol")}} used to re

Unlike POP3, IMAP allows multiple simultaneous connections to one mailbox. Clients accessing a mailbox can receive information about state changes made from other clients. IMAP also provides a mode for clients to stay connected and receive information on demand.

Mark Crispin initially developed IMAP in 1986 as _Interim Mail Access Protocol_. IMAP4 revision 1 is the current version, defined by [RFC 3501](https://www.rfc-editor.org/info/rfc3501).
Mark Crispin initially developed IMAP in 1986 as _Interim Mail Access Protocol_. IMAP4 revision 1 is the current version, defined by [RFC 3501](https://www.rfc-editor.org/info/rfc3501/).

## See also

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/glossary/microsoft_edge/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Edge used EdgeHTML as its {{Glossary("Engine/Rendering", "rendering engine")}} u
## See also

- [Microsoft Edge](https://en.wikipedia.org/wiki/Microsoft_Edge) on Wikipedia
- [Microsoft Edge](https://www.microsoft.com/en-us/edge) on microsoft.com
- [Microsoft Edge](https://explore.microsoft.com/en-us/edge) on microsoft.com
- Related glossary terms:
- {{Glossary("Browser")}}
- {{Glossary("Engine/Rendering", "Rendering engine")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ This generates a production-ready application development environment that inclu

## Getting ready to build our Ember project

You'll need a code editor before continuing to interact with your brand new project. If you don't have one configured already, [The Ember Atlas](https://www.notion.so/Editors-Tooling-5da96f0b2baf4ce1bf3fd58e3b60c7f6) has some guides on how to set up various editors.
You'll need a code editor before continuing to interact with your brand new project. If you don't have one configured already, [The Ember Atlas](https://app.notion.com/p/Editors-Tooling-5da96f0b2baf4ce1bf3fd58e3b60c7f6) has some guides on how to set up various editors.

### Installing the shared assets for TodoMVC projects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ To mitigate the possibility of these attacks, you should use the `crossorigin` a
</IfModule>
```

Google Chrome's [Google Fonts troubleshooting guide](https://developers.google.com/fonts/docs/troubleshooting) tells us that, while Google Fonts may send the CORS header with every response, some proxy servers may strip it before the browser can use it to render the font.
Google Chrome's [Google Fonts troubleshooting guide](https://fonts.google.com/faq#troubleshooting) tells us that, while Google Fonts may send the CORS header with every response, some proxy servers may strip it before the browser can use it to render the font.

```apacheconf
<IfModule mod_headers.c>
Expand Down Expand Up @@ -288,7 +288,7 @@ The required steps are:

### Forcing HTTPS

These Rewrite rules will redirect from the `http://` insecure version to the `https://` secure version of the URL as described in the [Apache HTTPD wiki](https://cwiki.apache.org/confluence/display/httpd/RewriteHTTPToHTTPS).
These Rewrite rules will redirect from the `http://` insecure version to the `https://` secure version of the URL as described in the [Apache HTTPD wiki](https://cwiki.apache.org/confluence/spaces/HTTPD/pages/115522478/RewriteHTTPToHTTPS).

```apacheconf
<IfModule mod_rewrite.c>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ At the bare minimum, you will want to modify the database configuration so that
In the following subsections, we outline the most important changes that you should make to your app.

> [!NOTE]
> There are other useful tips in the Express docs — see [Production best practices: performance and reliability](https://expressjs.com/en/advanced/best-practice-performance.html) and [Production Best Practices: Security](https://expressjs.com/en/advanced/best-practice-security.html).
> There are other useful tips in the Express docs — see [Production best practices: performance and reliability](https://expressjs.com/en/advanced/best-practice-performance/) and [Production Best Practices: Security](https://expressjs.com/en/advanced/best-practice-security/).

### Database configuration

Expand Down Expand Up @@ -184,7 +184,7 @@ export DEBUG="author,book"
> [!NOTE]
> Calls to `debug` can replace logging you might previously have done using `console.log()` or `console.error()`. Replace any `console.log()` calls in your code with logging via the [debug](https://www.npmjs.com/package/debug) module. Turn the logging on and off in your development environment by setting the DEBUG variable and observe the impact this has on logging.

If you need to log website activity you can use a logging library like _Winston_ or _Bunyan_. For more information on this topic see: [Production best practices: performance and reliability](https://expressjs.com/en/advanced/best-practice-performance.html).
If you need to log website activity you can use a logging library like _Winston_ or _Bunyan_. For more information on this topic see: [Production best practices: performance and reliability](https://expressjs.com/en/advanced/best-practice-performance/).

### Use gzip/deflate compression for responses

Expand Down Expand Up @@ -223,7 +223,7 @@ app.use("/catalog", catalogRouter); // Add catalog routes to middleware chain.

### Use Helmet to protect against well known vulnerabilities

[Helmet](https://www.npmjs.com/package/helmet) is a middleware package. It can set appropriate HTTP headers that help protect your app from well-known web vulnerabilities (see the [docs](https://helmetjs.github.io/) for more information on what headers it sets and vulnerabilities it protects against).
[Helmet](https://www.npmjs.com/package/helmet) is a middleware package. It can set appropriate HTTP headers that help protect your app from well-known web vulnerabilities (see the [docs](https://helmet.js.org/) for more information on what headers it sets and vulnerabilities it protects against).

Install this at the root of your project by running the following command:

Expand Down Expand Up @@ -633,8 +633,8 @@ That's the end of this tutorial on setting up Express apps in production, and al

## See also

- [Production best practices: performance and reliability](https://expressjs.com/en/advanced/best-practice-performance.html) (Express docs)
- [Production Best Practices: Security](https://expressjs.com/en/advanced/best-practice-security.html) (Express docs)
- [Production best practices: performance and reliability](https://expressjs.com/en/advanced/best-practice-performance/) (Express docs)
- [Production Best Practices: Security](https://expressjs.com/en/advanced/best-practice-security/) (Express docs)
- Railway Docs
- [CLI](https://docs.railway.com/cli)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ This example may not look any shorter than the original command, but you can inc

## Installing the Express Application Generator

The [Express Application Generator](https://expressjs.com/en/starter/generator.html) tool generates an Express application "skeleton". Install the generator using npm as shown:
The [Express Application Generator](https://expressjs.com/en/starter/generator/) tool generates an Express application "skeleton". Install the generator using npm as shown:

```bash
npm install express-generator -g
Expand Down Expand Up @@ -443,8 +443,8 @@ In the next article we start working through a tutorial to build a complete web
## See also

- [Downloads](https://nodejs.org/en/download) page (nodejs.org)
- [Installing Express](https://expressjs.com/en/starter/installing.html) (expressjs.com)
- [Express Application Generator](https://expressjs.com/en/starter/generator.html) (expressjs.com)
- [Installing Express](https://expressjs.com/en/starter/installing/) (expressjs.com)
- [Express Application Generator](https://expressjs.com/en/starter/generator/) (expressjs.com)
- [Using Node.js with Windows subsystem for Linux](https://learn.microsoft.com/en-us/windows/dev-environment/javascript/) (docs.microsoft.com)

{{PreviousMenuNext("Learn_web_development/Extensions/Server-side/Express_Nodejs/Introduction", "Learn_web_development/Extensions/Server-side/Express_Nodejs/Tutorial_local_library_website", "Learn_web_development/Extensions/Server-side/Express_Nodejs")}}
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Because the queries for document counts are independent of each other we use [`P
The method returns a new promise that we [`await`](/en-US/docs/Web/JavaScript/Reference/Operators/await) for completion (execution pauses within _this function_ at `await`).
When all the queries complete, the promise returned by `all()` fulfills, continuing execution of the route handler function, and populating the array with the results of the database queries.

We then call [`res.render()`](https://expressjs.com/en/5x/api.html#res.render), specifying a view (template) named '**index**' and objects mapping the results of the database queries to the view template.
We then call [`res.render()`](https://expressjs.com/en/5x/api/#res.render), specifying a view (template) named '**index**' and objects mapping the results of the database queries to the view template.
The data is supplied as key-value pairs, and can be accessed in the template using the key.

> [!NOTE]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ In our next article, we'll build on our knowledge, creating HTML forms and form

## See also

- [Using Template engines with Express](https://expressjs.com/en/guide/using-template-engines.html) (Express docs)
- [Using Template engines with Express](https://expressjs.com/en/guide/using-template-engines/) (Express docs)
- [Pug](https://pugjs.org/api/getting-started.html) (Pug docs)
- [Luxon](https://moment.github.io/luxon/#/) (Luxon docs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A template is a text file defining the _structure_ or layout of an output file,

## Express template choices

Express can be used with many different [template rendering engines](https://expressjs.com/en/guide/using-template-engines.html). In this tutorial we use [Pug](https://pugjs.org/api/getting-started.html) (formerly known as _Jade_) for our templates. This is the most popular Node template language, and describes itself as a "clean, whitespace-sensitive syntax for writing HTML, heavily influenced by [Haml](https://haml.info/)".
Express can be used with many different [template rendering engines](https://expressjs.com/en/guide/using-template-engines/). In this tutorial we use [Pug](https://pugjs.org/api/getting-started.html) (formerly known as _Jade_) for our templates. This is the most popular Node template language, and describes itself as a "clean, whitespace-sensitive syntax for writing HTML, heavily influenced by [Haml](https://haml.info/)".

Different template languages use different approaches for defining layout and marking placeholders for data—some use HTML to define the layout while others use different markup formats that can be transpiled to HTML. Pug is of the second type; it uses a _representation_ of HTML where the first word in any line usually represents an HTML element, and indentation on subsequent lines is used to represent nesting. The result is a page definition that translates directly to HTML, but is more concise and arguably easier to read.

Expand Down
Loading