GithubHelp home page GithubHelp logo

tmatsuo / firebase-appengine-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/firebase-appengine-backend

0.0 1.0 0.0 29 KB

License: Apache License 2.0

Java 100.00%

firebase-appengine-backend's Introduction

Build a Mobile App Using Firebase and App Engine Flexible Environment

This repository contains Android client sample code for the "Build a Mobile App Using Firebase and App Engine Flexible Environment" solution. Sample client code can be found here.

Deployment Requirements

Apache Maven is required in build environment. Firebase is a Google product, independent from Google Cloud Platform.

Google Cloud SDK setup

Get credentials and configure properties. This step is optional and you may skip it if it's already been set up.

  • Get credentials for the tools:
% gcloud auth login
  • Set project:
% gcloud configure set project <Project ID>

Configuration

  • Login to Firebase console and enable "Google" sign in provider from "SIGN IN METHOD" tab in "Auth" menu.

  • From "Settings", click "Permissions" and move to "IAM & Admin" menu, then create a new service account and download JSON file (more details). Note that this JSON file is different from the "google-services.json" file used in the Android client.

  • Copy the JSON file under "WEB-INF" source directory.

  • Replace following initial parameters in "WEB-INF/web.xml".

<init-param>
	<param-name>credential</param-name>
	<param-value>/WEB-INF/JSON_FILE_NAME</param-value>
</init-param>
<init-param>
	<param-name>databaseUrl</param-name>
	<param-value>FIREBASE_URL</param-value>
</init-param>

Build and deploy

  • To build and run the backend module locally:
% mvn clean gcloud:run
  • To deploy the backend module to App Engine:
% mvn gcloud:deploy

View user event logs

  • Run Android client apps and access following URLs to view user event logs.

  • For local build environment :

http://localhost:8080/printLogs

License

Copyright 2016 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This is not an official Google product.

firebase-appengine-backend's People

Contributors

tyagihas avatar dh-- avatar synemitchell avatar

Watchers

James Cloos avatar

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.