You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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.
34
34
- Install [Visual Studio Code](https://code.visualstudio.com/).
35
35
- Install the [Azure App Service extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice) for Visual Studio Code.
- 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.
44
44
- Install <ahref="/cli/azure/install-azure-cli"target="_blank">Azure CLI</a>, with which you run commands in a shell to create and configure Azure resources.
45
45
46
46
::: zone-end
@@ -49,7 +49,7 @@ The steps in the video are also described in the following sections.
- 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.
53
53
- Have an FTP client (for example, [FileZilla](https://filezilla-project.org)), to connect to your app.
54
54
55
55
::: zone-end
@@ -60,18 +60,26 @@ In this step, you create a basic Node.js application and ensure it runs on your
60
60
> [!TIP]
61
61
> 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).
62
62
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.
64
64
65
65
```bash
66
66
npx express-generator myExpressApp --view ejs
67
67
```
68
68
69
+
If this is the first time you've installed the generator, npx will ask you to agree to the installation.
70
+
69
71
1. Change to the application's directory and install the npm packages.
70
72
71
73
```bash
72
74
cd myExpressApp && npm install
73
75
```
74
76
77
+
1. Update dependencies to the most secure version.
78
+
79
+
```bash
80
+
npm audit fix --force
81
+
```
82
+
75
83
1. Start the development server with debug information.
0 commit comments