Skip to content

Commit 3e548e6

Browse files
committed
docs: update readme
1 parent 3e6b568 commit 3e548e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/makeline-service/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,25 @@ export ORDER_DB_COLLECTION_NAME=orders
8585

8686
To run this against Azure CosmosDB, you will need to create the CosmosDB account, the database, and collection. You can do this using the Azure CLI.
8787

88+
> Azure CosmosDB supports multiple APIs. This app supports both the MongoDB and SQL APIs. You will need to create the database and collection based on the API you want to use.
89+
8890
```bash
8991
RGNAME=<resource-group-name>
9092
LOCNAME=<location>
9193
COSMOSDBNAME=<cosmosdb-account-name>
9294

9395
az group create --name $RGNAME --location $LOCNAME
94-
az cosmosdb create --name $COSMOSDBNAME --resource-group $RGNAME --kind MongoDB # or --kind GlobalDocumentDB (for SQL API)
9596

9697
# if database requires MongoDB API
9798
# create the database and collection
99+
az cosmosdb create --name $COSMOSDBNAME --resource-group $RGNAME --kind MongoDB
98100
az cosmosdb mongodb database create --account-name $COSMOSDBNAME --name orderdb --resource-group $RGNAME
99101
az cosmosdb mongodb collection create --account-name $COSMOSDBNAME --database-name orderdb --name orders --resource-group $RGNAME
100102

101103
# if database requires SQL API
102104
# create the database and container
103-
COSMOSDBPARTITIONKEY=<partition-key>
105+
COSMOSDBPARTITIONKEY=storeId
106+
az cosmosdb create --name $COSMOSDBNAME --resource-group $RGNAME --kind GlobalDocumentDB
104107
az cosmosdb sql database create --account-name $COSMOSDBNAME --name orderdb --resource-group $RGNAME
105108
az cosmosdb sql container create --account-name $COSMOSDBNAME --database-name orderdb --name orders --resource-group $RGNAME --partition-key-path /$COSMOSDBPARTITIONKEY
106109
```

0 commit comments

Comments
 (0)