Name: firebase-appengine-backend
Owner: Google Cloud Platform
Description: null
Created: 2016-04-27 17:29:53.0
Updated: 2018-04-09 11:07:22.0
Pushed: 2017-12-14 06:15:09.0
Homepage: null
Size: 30
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Apache Maven is required in build environment. Firebase is a Google product, independent from Google Cloud Platform.
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:
loud auth login
Set project:
loud configure set project <Project ID>
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”.
t-param>
<param-name>credential</param-name>
<param-value>/WEB-INF/JSON_FILE_NAME</param-value>
it-param>
t-param>
<param-name>databaseUrl</param-name>
<param-value>FIREBASE_URL</param-value>
it-param>
To build and run the backend module locally:
n clean gcloud:run
To deploy the backend module to App Engine:
n gcloud:deploy
Run Android client apps and access following URLs to view user event logs.
For local build environment :
://localhost:8080/printLogs
For App Engine Flexible Environment, replace “http://localhost:8080” to the assigned URL accordingly.
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.