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/firebase-tictactoe at master · djfunes/java-docs-samples

Expand file tree

/

firebase-tictactoe

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

firebase-tictactoe

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Tic Tac Toe on Google App Engine Standard using Firebase

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

  • Install Apache Maven 3.0.5 or later
  • Create a project in the Firebase Console
  • Download and install the Cloud SDK

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
  • Setup Application Default Credentials to run your application locally: Download service account credentials and set the GOOGLE_APPLICATION_CREDENTIALS environment variable to its path:
   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.

You are visitor 01402792 — 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.