GithubHelp home page GithubHelp logo

isabella232 / azure-cosmos-db-documentdb-nodejs-getting-started Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/azure-cosmos-db-documentdb-nodejs-getting-started

0.0 0.0 0.0 11 KB

Azure Cosmos DB's DocumentDB API provides a JSON document database data model and the power of SQL and JavaScript over schema-less data. This tutorial shows how to get started with the DocumentDB API and the Node.js SDK.

License: MIT License

JavaScript 100.00%

azure-cosmos-db-documentdb-nodejs-getting-started's Introduction

services platforms author
cosmos-db
nodejs
andrewhoh

Developing a Node.js app using the Azure Cosmos DB SQL API

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 the Azure Cosmos DB with the SQL API to store and access data from a Node.js application.

Running this sample

  • Before you can run this sample, you must have the following perquisites:
  1. Clone this repository using git clone [email protected]:Azure-Samples/azure-cosmos-db-documentdb-nodejs-getting-started.git cosmosdb

  2. Change directories to the repo using cd cosmosdb

  3. Next, substitute the endpoint and authorization key in config.js with your Cosmos DB account's values.

    config.endpoint = "~your Azure Cosmos DB endpoint here~";
    config.authKey = "~your auth key here~";
    
  4. Run npm install in a terminal to install required npm modules

  5. Run node app.js in a terminal to start your start your node application.

About the code

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.

More information

azure-cosmos-db-documentdb-nodejs-getting-started's People

Contributors

arramac avatar clarkio avatar johnpapa avatar microsoftopensource avatar mimig1 avatar msftgits avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.