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
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.
18
18
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.
22
20
23
21
## Prerequisites
24
22
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)
26
26
27
27
## Add a feature flag
28
28
@@ -31,15 +31,33 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
31
31
> [!div class="mx-imgBorder"]
32
32
> 
33
33
34
-
## Use the feature flag
35
34
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
37
36
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
39
55
npm install @microsoft/feature-management
40
56
```
41
57
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.
0 commit comments