App Engine Java VM Runtime Websocket Chat Copyright (C) 2010-2014 Google Inc.
This application builds and deploys a chat application which uses web sockets to Google App Engine Managed VMs, using Maven and the gcloud SDK.
- Create a billing enabled project and install the Google Cloud SDK as described here.
- Install Maven 3.1 or later as described here.
In order to run this application, you also need to configure the Compute Engine firewall to allow incoming connections to the port 65080 by default.
Here is how to configure the Compute Engine firewall.
- Go to the cloud console.
- Select your project
- Select
Compute Engine
- Click the
Network
menu then click thedefault
network. - Click
Create new
button in theFirewalls
section. - Type
chatservice
in theName
field andtcp:65080
in theProtocols & Ports
field, then clickCreate
button.
Now you're good to go!
##Deploy
After setting up Maven, you can deploy your app locally, or to the Google Cloud Platform as described here, then visit http://chat.your-app-id.appspot.com/
.