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
Use the [JavaScript/TypeScript SDK for Azure Cognitive Search](/javascript/api/overview/azure/search-documents-readme) to create a Node.js application in JavaScript that creates, loads, and queries a search index.
25
24
26
25
This article demonstrates how to create the application step by step. Alternatively, you can [download the source code and data](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/master/quickstart/v11) and run the application from the command line.
@@ -37,7 +36,6 @@ Before you begin, have the following tools and services:
37
36
38
37
+[Visual Studio Code](https://code.visualstudio.com) or another IDE
39
38
40
-
41
39
## Set up your project
42
40
43
41
Start by getting the endpoint and key for your search service. Then create a new project with NPM as outlined below.
@@ -67,20 +65,20 @@ Begin by opening VS Code and its [integrated terminal](https://code.visualstudio
67
65
cd quickstart
68
66
```
69
67
70
-
2. Initialize an empty project with NPM by running
68
+
2. Initialize an empty project with NPM by running the following command. To fully initialize the project, press Enter multiple times to accept the default values, except for the License, which you should set to "MIT".
71
69
72
70
```cmd
73
71
npm init
74
72
```
75
-
Accept the default values, except for the License, which you should set to "MIT".
76
-
77
-
3. Install `@azure/search-documents`, the [JavaScript/TypeScript SDK for Azure Cognitive Search](/javascript/api/overview/azure/search-documents-readme).
73
+
74
+
3. Install `@azure/search-documents`, the [JavaScript/TypeScript SDK for Azure Cognitive Search](/javascript/api/overview/azure/search-documents-readme).
78
75
79
76
```cmd
80
77
npm install @azure/search-documents
81
78
```
82
79
83
-
4. Install `dotenv`, which is used to import the environment variables such as our service name and API key.
80
+
4. Install `dotenv`, which is used to import the environment variables such as your search service name and API key.
81
+
84
82
```cmd
85
83
npm install dotenv
86
84
```
@@ -103,8 +101,8 @@ Begin by opening VS Code and its [integrated terminal](https://code.visualstudio
0 commit comments