Skip to content

Files

Latest commit

16375ec · Apr 12, 2016

History

History
This branch is 9831 commits behind GoogleCloudPlatform/java-docs-samples:main.

datastore

README.md

Datastore Samples

This directory contains sample code used in Google Cloud Datastore documentation. Included here is a sample command line application, TaskList, that interacts with Datastore to manage a to-do list.

Run the TaskList sample application.

  1. Ensure that you have:
  • Created a Google Developers Console project with the Datastore API enabled. Follow these instructions to get your project set up.
  • Installed the Google Cloud SDK and run the following commands in command line: gcloud auth login and gcloud config set project [YOUR PROJECT ID].
  • Installed Maven and Java 7 (or above).
  1. Compile the program by typing mvn clean compile in command line.

  2. Run the program by typing mvn exec:java in command line. In addition to listing tasks via this command line interface, you can view tasks you create in the Google Cloud Developer's Console.