GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - HuangKaiCheng/documentdb-node-getting-started: This sample shows you how get started quickly with Microsoft Azure DocumentDB service and Node.js

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
media
media
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.js
app.js
 
 
config.js
config.js
 
 
package.json
package.json
 
 

Repository files navigation

services documentdb
platforms nodejs
author andrewhoh

Developing a Node.js console app using DocumentDB

This sample shows you how to use the Microsoft Azure DocumentDB service to store and access data from a Node.js console application.

Node.js Console App

Running this sample

  1. Before you can run this sample, you must have the following perquisites:

    • An active Azure DocumentDB account - If you don't have an account, refer to the Create a DocumentDB account article.
    • Node.js version v0.10.29 or higher.
    • Git.
  2. Clone this repository, or download the zip file.

  3. Retrieve the URI and PRIMARY KEY (or SECONDARY KEY) values from the Keys blade of your DocumentDB account in the Azure Preview portal. For more information on obtaining endpoint & keys for your DocumentDB account refer to How to manage a DocumentDB account.

    If you don't have an account, see Create a DocumentDB database account to set one up.

  4. In the config.js file, located in the src folder, find config.endpoint and config.authKey and replace the placeholder values with the values obtained for your account.

    config.endpoint = "your DocumentDB endpoint here";

    config.authKey = "your auth key here";

  5. Run npm install in a terminal to install required npm modules

  6. 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 DocumentDB.

More information

  • Azure DocumentDB Documentation
  • Azure DocumentDB Node SDK
  • Azure DocumentDB Node SDK Reference Documentation

About

This sample shows you how get started quickly with Microsoft Azure DocumentDB service and Node.js

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.