| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
| page_type | sample | |
|---|---|---|
| languages |
|
|
| products |
|
|
| description | Azure Cosmos DB is a globally distributed multi-model database. | |
| urlFragment | azure-cosmos-db-sql-api-nodejs-getting-started |
Azure Cosmos DB is a globally distributed multi-model database. One of the supported APIs is the SQL API, which provides a JSON document model with SQL querying and JavaScript procedural logic. This sample shows you how to use Azure Cosmos DB with the SQL API to store and access data from a Node.js application.
Clone this repository using git clone git@github.com:Azure-Samples/azure-cosmos-db-sql-api-nodejs-getting-started.git cosmosdb
Change directories to the repo using cd cosmosdb
Next, substitute the endpoint and authorization key in config.js with your Azure Cosmos DB account's values.
config.endpoint = "~your Azure Cosmos DB endpoint here~"; config.primaryKey = "~your auth key here~";
Run npm install in a terminal to install required npm modules
Run node app.js in a terminal to start your start your node application.
The code included in this sample is intended to get you quickly started with a Node.js console application that connects to Azure Cosmos DB with the SQL API.
| Back | FazBrowse Home | New Git URL |