Moves the Bigtable Hello World application to Google App Engine Flexible.
- 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
mvn -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID jetty:run-exploded
mvn -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID appengine:deploy
mvn -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID verify
gradle -Dbigtable.projectID=PROJECTID -Dbigtable.instanceID=INSTANCEID jettyRun
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:
Cloud Bigtable Instances should be deleted when they are no longer being used as they use significant resources.