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.
- 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 application-default login
andgcloud config set project [YOUR PROJECT ID]
. - Installed Maven and Java 7 (or above).
-
Compile the program by typing
mvn clean compile
in command line. -
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.