X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Tic Tac Toe on Google App Engine Standard using Firebase

Open in Cloud Shell

Java 7 runtime support on App Engine standard was deprecated on December 13, 2017 and will be shut down entirely on January 16, 2019. It is replaced by the Java 8 Runtime Environment.

Samples for the Java 8 runtime can be found here.

This directory contains a project that implements a realtime two-player game of Tic Tac Toe on Google App Engine Standard, using the Firebase database for realtime notifications when the board changes.

Setup

Initialize the gcloud configuration to use your new project:

   gcloud init
  • In the Overview section of the Firebase console, click 'Add Firebase to your web app' and replace the contents of the file src/main/webapp/WEB-INF/view/firebase_config.jspf with that code snippet.
  • Enable the Identity API
  • If you haven't already, Create an App Engine app within the current Google Cloud Project
    gcloud app create
   export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/credentials.json

Running locally

$ mvn appengine:run

When running locally, the page does not automatically refresh, please reload the page manually after each move.

Deploying to App Engine Standard

$ mvn appengine:deploy

Contributing changes

See CONTRIBUTING.md.

Licensing

See LICENSE.

X Tutup