Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Bookshelf App for Java Tutorial

Binary Data

Contains the code for using Cloud Datastore and Cloud SQL v2.

This is part of a Bookshelf tutorial.

Most users can get this running by updating the parameters in pom.xml. You'll also need to [create a bucket][create-bucket] in Google Cloud Storage, referred to below as MY-BUCKET.

Running Locally

mvn clean jetty:run-exploded \
    -Dbookshelf.bucket=MY-BUCKET

Deploying to App Engine Flexible

  • Initialize the Google Cloud SDK

    gcloud init
    
  • In the pom.xml, update the App Engine Maven Plugin with your Google Cloud Project Id:

    <plugin>
      <groupId>com.google.cloud.tools</groupId>
      <artifactId>appengine-maven-plugin</artifactId>
      <version>2.3.0</version>
      <configuration>
        <projectId>myProjectId</projectId>
        <version>GCLOUD_CONFIG</version>
      </configuration>
    </plugin>
    

    Note: GCLOUD_CONFIG is a special version for autogenerating an App Engine version. Change this field to specify a specific version name.

  • Deploy your App

    mvn clean package appengine:deploy \
        -Dbookshelf.bucket=MY-BUCKET