Skip to content

Latest commit

 

History

History
 
 

datastore

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Platform logo

Google Cloud Datastore Node.js Samples

Cloud Datastore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.

Table of Contents

Setup

  1. Read Prerequisites and How to run a sample first.

  2. Install dependencies:

     npm install
    

Samples

Getting started with Google Cloud Datastore API

View the documentation or the source code.

Run the sample:

Usage: node tasks.js <command> [args]...

Commands:
  new <description>  Adds a task with a description <description>.
  done <taskId>      Marks the specified task as done.
  list               Lists all tasks ordered by creation time.
  delete <taskId>    Deletes a task.

Options:
  --help  Show help                                       [boolean]

Examples:
  node tasks.js new "Buy milk"  Adds a task with description "Buy milk".
  node tasks.js done 12345      Marks task 12345 as Done.
  node tasks.js list            Lists all tasks ordered by creation time
  node tasks.js delete 12345    Deletes task 12345.

For more information, see https://cloud.google.com/datastore/docs

Concepts

View the documentation or the source code.

Errors and Error Handling

View the documentation or the source code.

Run the sample:

node error