Skip to content

GoogleCloudPlatform/java-docs-samples

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

67bfef8 · Mar 23, 2020
Mar 16, 2020
Mar 21, 2020
Mar 23, 2020
Mar 23, 2020
Mar 13, 2020
Feb 16, 2020
Mar 11, 2020
Mar 5, 2020
Mar 9, 2020
Jan 16, 2020
Mar 20, 2020
Mar 19, 2020
Feb 20, 2020
Mar 13, 2020
Mar 13, 2020
Feb 17, 2020
Feb 3, 2020
Mar 5, 2020
Mar 17, 2020
Mar 20, 2020
Mar 16, 2020
Jan 16, 2020
Jan 21, 2020
Mar 20, 2020
Mar 23, 2020
Mar 9, 2020
Mar 13, 2020
Mar 11, 2020
Mar 16, 2020
Mar 18, 2020
Mar 18, 2020
Mar 10, 2020
Feb 25, 2020
Mar 20, 2020
Mar 6, 2020
Mar 12, 2020
Mar 19, 2020
Feb 20, 2020
Mar 17, 2020
Mar 9, 2020
Mar 4, 2020
Mar 12, 2020
Mar 19, 2020
Mar 19, 2020
Mar 10, 2020
Mar 20, 2020
Feb 18, 2020
Jan 21, 2020
Mar 19, 2020
Feb 19, 2020
Mar 20, 2020
Mar 11, 2020
Mar 23, 2020
Jan 15, 2020
Dec 3, 2019
Mar 25, 2015
Jul 11, 2019
Dec 18, 2019
Apr 27, 2016
Mar 19, 2020

Repository files navigation

Google Cloud Platform Java Samples

Kokoro Build Status Coverage Status

Open in Cloud Shell

This repository holds sample code written in Java that demonstrates the Google Cloud Platform.

Some samples have accompanying guides on <cloud.google.com>. See respective README files for details.

Set Up

  1. Set up your Java Development Environment

  2. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
    
  3. Obtain authentication credentials.

    Create local credentials by running the following command and following the oauth2 flow (read more about the command here):

     gcloud auth application-default login
    

    Or manually set the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to a service account key JSON file path.

    Learn more at Setting Up Authentication for Server to Server Production Applications.

    Note: Application Default Credentials is able to implicitly find the credentials as long as the application is running on Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions.

Contributing

Licensing