GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/appengine-java8/bigtable at master · jzbswbsw/java-docs-samples

Expand file tree

/

bigtable

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

bigtable

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
pom.xml
pom.xml
 
 
settings.gradle
settings.gradle
 
 

README.md

Outline

Bigtable-hello-j8

Moves the Bigtable Hello World application to Google App Engine Standard for Java 8.

  • Java 8
  • Maven (at least 3.3.9)
  • Gradle
  • Google Cloud SDK (aka gcloud)

Initialize the Google Cloud SDK using:

gcloud init

gcloud auth application-default login

Then you need to Create a Cloud Bigtable Instance

Using Maven

Run Locally

mvn -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID appengine:run

Deploy to App Engine Standard for Java 8

mvn -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID appengine:deploy

Run Integration Tests

mvn -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID verify

Using Gradle

Run Locally

gradle -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID appengineRun

Integration Tests & Deploy to App Engine Standard for Java 8

gradle -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID appengineDeploy

As you add / modify the source code (src/main/java/...) it's very useful to add unit testing to (src/main/test/...). The following resources are quite useful:

  • JUnit4
  • Mockito
  • Truth

When done

Cloud Bigtable Instances should be deleted when they are no longer being used as they use significant resources.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.