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.
-
Install Apache Maven 3.0.5 or later
-
Install the Google Cloud SDK
-
Create a project in the Firebase Console
-
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.jspfwith that code snippet. -
If using the development appserver to run the app locally, you must supply credentials that would otherwise be inferred from the App Engine environment. Download service account credentials and set the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable to its path:export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/credentials.json
-
To run the app locally using the development appserver:
$ mvn appengine:run
- If you see the error
Google Cloud SDK path was not provided ...:-
Make sure you've installed the Google Cloud SDK
-
Make sure the Google Cloud SDK's
bin/directory is in yourPATH. If you prefer it not to be, you can also set the environment variableGOOGLE_CLOUD_SDK_HOMEto point to where you installed the SDK:export GOOGLE_CLOUD_SDK_HOME=/path/to/google-cloud-sdk
-
See CONTRIBUTING.md.
See LICENSE.