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/postgres at master · guidomaiola/java-docs-samples

Expand file tree

/

postgres

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

postgres

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Postgre SQL sample for Google App Engine J8

This sample demonstrates how to use PostgreSql on Google App Engine standard Java 8

Setup

  • If you haven't already, Download and initialize the Cloud SDK

    gcloud init

  • If you haven't already, Create an App Engine app within the current Google Cloud Project

    gcloud app create

  • If you haven't already, Setup Application Default Credentials

    gcloud auth application-default login

  • Create an instance

  • Create a Database

  • Create a user

  • Note the Instance connection name under Overview > properties

Running locally

$ mvn clean appengine:run -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root -Dpassword=myPassowrd -Ddatabase=myDatabase

Deploying

$ mvn clean appengine:deploy -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root
-Dpassword=myPassword -Ddatabase=myDatabase

Cleaning up

  • Delete your Instance
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.