Skip to content

Commit fb4e642

Browse files
update
1 parent f5ae4d8 commit fb4e642

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

articles/azure-app-configuration/quickstart-feature-flag-javascript.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ ms.custom: quickstart, mode-other, devx-track-js
1616

1717
In this quickstart, you incorporate Azure App Configuration into a Node.js console app to create an end-to-end implementation of feature management. You can use App Configuration to centrally store all your feature flags and control their states.
1818

19-
The JavaScript Feature Management libraries extend the framework with feature flag support. They seamlessly integrate with App Configuration through its JavaScript configuration provider.
20-
21-
The example used in this tutorial is based on the Node.js application introduced in the [quickstart](./quickstart-javascript-provider.md).
19+
The JavaScript Feature Management libraries extend the framework with feature flag support. They seamlessly integrate with App Configuration through its JavaScript configuration provider. As an example, this tutorial shows how to use the JavaScript Feature Management in a Node.js app.
2220

2321
## Prerequisites
2422

25-
- Finish the quickstart [Create a JavaScript app with Azure App Configuration](./quickstart-javascript-provider.md).
23+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
24+
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
25+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). For information about installing Node.js either directly on Windows or using the Windows Subsystem for Linux (WSL), see [Get started with Node.js](/windows/dev-environment/javascript/nodejs-overview)
2626

2727
## Add a feature flag
2828

@@ -31,15 +31,33 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
3131
> [!div class="mx-imgBorder"]
3232
> ![Enable feature flag named Beta](media/quickstart-feature-flag-javascript/add-beta-feature-flag.png)
3333
34-
## Use the feature flag
3534

36-
1. Go to the *app-configuration-quickstart* directory that you created in the quickstart and install the Feature Management by using the `npm install` command.
35+
## Create a Node.js console app
3736

38-
``` console
37+
In this tutorial, you create a Node.js console app and load the feature flag from your App Configuration store.
38+
39+
1. Create a new directory for the project named *feature-management-quickstart*.
40+
41+
```console
42+
mkdir feature-management-quickstart
43+
```
44+
45+
1. Switch to the newly created *feature-management-quickstart* directory.
46+
47+
```console
48+
cd app-configuration-quickstart
49+
```
50+
51+
1. Install the Azure App Configuration provider and feature management by using the `npm install` command.
52+
53+
```console
54+
npm install @azure/app-configuration-provider
3955
npm install @microsoft/feature-management
4056
```
4157

42-
1. Open the file *app.js* and update it with the following code.
58+
## Use the feature flag
59+
60+
1. Create a file named *app.js* in the *feature-management-quickstart* directory and copy the following code.
4361

4462
### [Use Azure Credential (Recommended)](#tab/azurecredential)
4563

0 commit comments

Comments
 (0)