-
you cannot use localhost, so you have to use this command
-
you must grant auth access to your c9.io page
Altogether, here's what you need to do to get started
-
G: Fork the project on Github https://github.com/firebase/friendlychat
-
C9: create a nodejs space on c9.io based on that fork
-
F: Create a project in Firebase (console.firebase.google.com)
-
F: Copy the credentials from the project. You must click 2x in the console because of a bug.
-
F-C9: Paste the credentials in to web/index.html
-
run these commands in your c9 space (the second command solves the broken auth URL issue):
npm -g install firebase-tools
firebase login --no-localhost
firebase use --add
-
F: enable Google Auth (Auth > Sign in method)
-
F: OAuth redirect domains: add the C9.io domain. This fixes the pop up disappearing
-
deploy to firebase hosting if you wish (must be in the correct directory):
cd web
firebase deploy
- F: you can point a custom domain in the hosting panel
This is the source code for the Firebase FriendlyChat codelab. It includes start and end versions of the code for Web, Android, Objective-C and Swift. To get started open the codelab instructions:
Please read and follow the steps in the CONTRIBUTING.md
See LICENSE