Alexander Zhidkov
Alexander Zhidkov

Reputation: 581

Node.js proxy service for DocumentDB

We want to work with Azure DocumentDB from AngularJS SPA. I understand that it's best to have node.js proxy service as a middle tier in between them. I'm a .NET developer and having trouble creating it. Can you point me to any code samples for such proxy?

Upvotes: 0

Views: 141

Answers (2)

Gary Liu
Gary Liu

Reputation: 13918

Azure provides the DocumentDB SDK for C#, you can refer to https://azure.microsoft.com/en-us/documentation/articles/documentdb-get-started/ for how to handle DocumentDB operations in C#.

And then, you can leverage the API Apps in .Net implementing with the DocumentDB SDK for C#, to expose the APIs for your Angularjs SPA.

Upvotes: 2

Gopi Kolla
Gopi Kolla

Reputation: 974

You can also use APIM (Azure API Management/Gateway) as a proxy or middle tier in between your SPA and DocDB. This way you don't have to code your middle tier but use APIM which is a PaaS service and also provides rich set of functionalities.

Upvotes: 1

Related Questions