Skip to content

Commit 739a57c

Browse files
Merge pull request #291249 from diberry/diberry/1202-app-service
App service JS quickstart - security updates
2 parents 25e46a0 + d676996 commit 739a57c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

articles/app-service/quickstart-nodejs.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.assetid: 582bb3c2-164b-42f5-b081-95bfcb7a502a
55
author: msangapu-msft
66
ms.author: msangapu
77
ms.topic: quickstart
8-
ms.date: 08/28/2024
8+
ms.date: 12/02/2024
99
ms.devlang: javascript
1010
zone_pivot_groups: app-service-vscode-cli-portal
1111
ms.custom: mvc, devcenter, devdivchpfy22, devx-track-js, ai-video-demo
@@ -30,7 +30,7 @@ The steps in the video are also described in the following sections.
3030
:::zone target="docs" pivot="development-environment-vscode"
3131

3232
- Have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-app-service-extension&mktingSource=vscode-tutorial-app-service-extension).
33-
- Install [Node.js and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
33+
- Install [Node.js LTS](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
3434
- Install [Visual Studio Code](https://code.visualstudio.com/).
3535
- Install the [Azure App Service extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice) for Visual Studio Code.
3636
<!-- - <a href="https://git-scm.com/" target="_blank">Install Git</a> -->
@@ -40,7 +40,7 @@ The steps in the video are also described in the following sections.
4040
:::zone target="docs" pivot="development-environment-cli"
4141

4242
- Have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-app-service-extension&mktingSource=vscode-tutorial-app-service-extension).
43-
- Install [Node.js LTS and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
43+
- Install [Node.js LTS](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
4444
- Install <a href="/cli/azure/install-azure-cli" target="_blank">Azure CLI</a>, with which you run commands in a shell to create and configure Azure resources.
4545

4646
::: zone-end
@@ -49,7 +49,7 @@ The steps in the video are also described in the following sections.
4949
:::zone target="docs" pivot="development-environment-azure-portal"
5050

5151
- Have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-app-service-extension&mktingSource=vscode-tutorial-app-service-extension).
52-
- Install [Node.js LTS and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
52+
- Install [Node.js LTS](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
5353
- Have an FTP client (for example, [FileZilla](https://filezilla-project.org)), to connect to your app.
5454

5555
::: zone-end
@@ -60,18 +60,26 @@ In this step, you create a basic Node.js application and ensure it runs on your
6060
> [!TIP]
6161
> If you have already completed the [Node.js tutorial](https://code.visualstudio.com/docs/nodejs/nodejs-tutorial), you can skip ahead to [Deploy to Azure](#deploy-to-azure).
6262
63-
1. Create a Node.js application using the [Express Generator](https://expressjs.com/starter/generator.html), which is installed by default with Node.js and npm.
63+
1. Create a Node.js application using the [Express Generator](https://expressjs.com/starter/generator.html), which is installed by default with Node.js and npm.
6464

6565
```bash
6666
npx express-generator myExpressApp --view ejs
6767
```
6868

69+
If this is the first time you've installed the generator, npx will ask you to agree to the installation.
70+
6971
1. Change to the application's directory and install the npm packages.
7072

7173
```bash
7274
cd myExpressApp && npm install
7375
```
7476

77+
1. Update dependencies to the most secure version.
78+
79+
```bash
80+
npm audit fix --force
81+
```
82+
7583
1. Start the development server with debug information.
7684

7785
```bash

0 commit comments

Comments
 (0)