Code Monkey home page Code Monkey logo

appengine-endpoints-tictactoe-java-maven's Introduction

appengine-endpoints-backend-java

This application implements a simple backend for a Tic Tac Toe game using Google Cloud Endpoints, App Engine, and Java.

Products

  • Google App Engine 1.8.8 1

Language

  • Java 1.7 2

APIs

Setup Instructions

a. Update the value of application in appengine-web.xml to the app ID you have registered in the App Engine admin console and would like to use to host your instance of this sample. b. Update the values in src/com/google/devrel/samples/ttt/spi/Ids.java to reflect the respective client IDs you have registered in the APIs Console.

c. Update the value of google.devrel.samples.ttt.CLIENT_ID in war/js/render.js to reflect the web client ID you have registered in the

Need a separate link to guide the user through the setup process. Non trivial.

d. mvn clean install e. Run the application with mvn appengine:devserver, and ensure it's running by visiting your local server's address (by default [localhost:8080][5].)

And I see a page with a large yellow triangle, with a caption stating "You must sign in to play". So I press "Sign in" at the top left, then get an error in the next popup page. Is this expected behaviour ?

The error is:

Error: invalid_client Bad request. Request Details cookie_policy_enforce=false response_type=code token id_token gsession scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/plus.login redirect_uri=postmessage cookie_policy=single_host_origin proxy=oauth2relay646919858 include_granted_scopes=true origin=http://localhost:8080 state=305326422|0.3899307157 client_id=itaxibookperf request_visible_actions=http://schemas.google.com/AddActivity authuser=0

e. Get the client library with mvn appengine:get_client_lib f. Deploy your application.

NOT https [5]: http://localhost:8080/ [6]: https://developers.google.com/appengine/docs/java/tools/maven

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.