Skip to content

ssageghi/loopback-connector-documentdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loopback-connector-documentdb

Loopback database connector for Microsoft Azure DocumentDB

Build Status Dependency Status Coverage Status Join the chat at https://gitter.im/dzonatan/loopback-connector-documentdb npm version

Installation for LoopBack API

Install documentdb connector as a npm dependency:

npm install loopback-connector-documentdb --save

Create datasource using documentdb connector:

slc loopback:datasource documentdb
Enter the data-source name: documentdb
Select the connector for documentdb: other
Enter the connector name without the loopback-connector- prefix: documentdb

Open server/datasources.json file and add 3 additional properties to documentdb datasource:

...
"host": "URL FOR YOUR DATABASE",
"masterKey": "YOUR MASTER KEY FROM AZURE PORTAL",
"databaseId": "DATABASE ID",
"collectionId": "COLLECTION ID"
...

All those properties are required! If you don't have yet any database and/or collection created you can create them manually via Azure Portal.

About

Loopback database connector for Microsoft Azure DocumentDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%