Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

10 GitHub samples with Azure DocumentDB you shouldn’t miss!

$
0
0

Azure DocumentDB is a fully managed, multi-model, scalable, queryable, schema-free NoSQL database service built for modern applications: mobile, web, IoT, bots, AI, etc. Recently, I went on GitHub and have found a lot of useful material and links to step-by-step tutorials and examples. Below are the top 10 that anyone starting to build an app backed by planet-scale NoSQL should know about. There is lots more. So head on over and learn about this cool new NoSQL planet-scale database service.


10 GitHub samples with Azure DocumentDB you shouldn’t miss!
1. Azure/azure-documentdb-dotnet

In this repo , you can find the samples and utilities relating to Azure DocumentDB and the .NET SDK and how to use them. The samples demonstrate how to use every method and operation of the .NET SDK, and searchabletodo is a sample ASP.NET MVC web application that shows how to build an ASP.NET MVC web application with DocumentDB and then further enrich it withAzure Search. Another great example in this repo is a Xamarin sample which illustrates how to use DocumentDB built-in authorization engine to implement per-user data pattern for a Xamarin mobile app . It is a simple multi-user ToDo list app allowing users to login using Facebook Auth and manage their to do items. After playing with this sample, you can then go further with Xamarin and build any IoS or Android app on top of DocumentDB.


10 GitHub samples with Azure DocumentDB you shouldn’t miss!

The samples will walk you through how to best interact with the service using Client SDK. Specifically:

CollectionManagement shows CRUD operations on DocumentCollection resources. DatabaseManagent shows CRUD operations on Database resources. DocumentManagement shows CRUD operations on Document resources. IndexManagement shows samples on how to customize the Indexing Policy for a Collection should you need to. Partitioning included samples for common partitioning scenarios using the .NET SDK. Queries shows how to query using LINQ and SQL. ServerSideScripts shows how to create and execute Stored Procedures, Triggers and User Defined Functions. UserManagement shows CRUD operations on User and Permission resources. Spatial shows how to work with GeoJSON and DocumentDB geospatial capabilities.

After walking through these samples, you should have a good idea of how to get going and how to make use of the various APIs interacting with the NoSQL service in Azure.

2. mingaliu/DocumentDBStudio
10 GitHub samples with Azure DocumentDB you shouldn’t miss!

This repo contains DocumentDBStudio - a client management viewer/explorer for DocumentDB service. Currently it supports:

Easy browsing of DocumentDB resources, which enables you to learn DocumentDB resource model very quickly. Create, Read, Update, Delete (CRUD) and Query operations for every DocumentDB resources and resource feed. Support of SQL or UDF query. You can execute javascript stored procedure or trigger right from DocumentDBStudio. Inspection of headers (for quota, usage, RG charge, etc.) for every request operation. It also supports three connection modes: TCP, HTTPDirect, and Gateway. Support of various RequestOptions (for pre/post trigger, sessionToken, consistency model etc), FeedOptions(for paging, enableScanforQuery etc), IndexingPolicy (for indexingMode, indexingType, indexingPath etc). PrettyPrint the output JSON. Bulk import of JSON files.

It is simply a “good IDE” for the “natives” of DocumentDB. Give it a try.

3. Azure/azure-documentdb-node

This repo provides aNode.js module that makes it easy to interact with Azure DocumentDB using Node.js - an open-source, cross-platform JavaScript runtime environment suited for developing a diverse variety of tools and applications. Node.js aims to optimize throughput and scalability in Web applications with many input/output operations, as well as for real-time Web applications (e.g., real-time communication programs and browser games). Combining it with DocumentDB service gives you a really powerful combination and agility in building up an app and then scaling it up very quickly.


10 GitHub samples with Azure DocumentDB you shouldn’t miss!

If you are developing using Node.js and combining it with DocumentDB, see Node.js Developer Center and the Microsoft Azure DocumentDB Node.js SDK Documentation . Also, to get started, watch this YouTube video . The samples in the repo were built using the Node.js Tools for Visual Studio and include njsproj files accordingly. However, you do not need Visual Studio to run these samples. Just ignore the nsjprof files, if you wish, and open the app.js in your choice of editor such as Visual Studio Code , or even a text editor, such as Sublime. The choice is yours!

4. Azure/azure-documentdb-datamigrationtool

This repo contains the DocumentDB Data Migration Tool - an open source solution to import data to DocumentDB from a variety of sources with ease and simplicity. The migration tool supports migration of data from the following sources:

Azure Tables JSON files MongoDB SQL Server CSV files RavenDB Amazon DynamoDB HBase DocumentDB collections While the import tool includes a graphical user interface (dtui.exe), it can also be driven from the command line (dt.exe).

Viewing all articles
Browse latest Browse all 6262

Trending Articles