这是indexloc提供的服务,不要输入任何密码
Skip to content

weiks/friendlychat

 
 

Repository files navigation

Important lessons for working with c9.io

  1. you cannot use localhost, so you have to use this command

  2. you must grant auth access to your c9.io page

Altogether, here's what you need to do to get started

  1. G: Fork the project on Github https://github.com/firebase/friendlychat

  2. C9: create a nodejs space on c9.io based on that fork

  3. F: Create a project in Firebase (console.firebase.google.com)

  4. F: Copy the credentials from the project. You must click 2x in the console because of a bug.

  5. F-C9: Paste the credentials in to web/index.html

  6. 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

  1. F: enable Google Auth (Auth > Sign in method)

  2. F: OAuth redirect domains: add the C9.io domain. This fixes the pop up disappearing

  3. deploy to firebase hosting if you wish (must be in the correct directory):

cd web

firebase deploy

  1. F: you can point a custom domain in the hosting panel

Firebase Codelab: FriendlyChat

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:

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md

License

See LICENSE

About

The source for the Firebase codelab for building a cross-platform chat app

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 29.0%
  • Objective-C 27.5%
  • Swift 18.2%
  • JavaScript 12.8%
  • HTML 6.8%
  • CSS 5.1%
  • Ruby 0.6%