Skip to content

Latest commit

 

History

History
 
 

README.md

Google Managed VMs Java Samples

This is a repository that contains Java code samples for Google Managed VMs

See our other Google Cloud Platform github repos for sample applications and scaffolding for other frameworks and use cases.

Run Locally

  1. Install the Google Cloud SDK, including the gcloud tool, and gcloud app component.

  2. Setup the gcloud tool.

    gcloud init
    
  3. Clone this repo.

    git clone https://github.com/GoogleCloudPlatform/<REPO NAME>.git
    
  4. Run this project locally from the command line.

    mvn clean jetty:run
    
  5. Visit the application at http://localhost:8080.

Deploying

  1. Use the Cloud Developer Console to create a project/app id. (App id and project id are identical)

  2. Setup the gcloud tool.

    gcloud init
    
  3. Use the Admin Console to view data, queues, and other App Engine specific administration tasks.

  4. Use gcloud to deploy your app.

    mvn clean gcloud:deploy
    
  5. Congratulations! Your application is now live at your-app-id.appspot.com

Contributing changes

Licensing