BlueBubblesApp / bluebubbles-server

Server for forwarding iMessages to clients within the BlueBubbles App ecosystem
https://bluebubbles.app
Apache License 2.0
554 stars 47 forks source link

Automate the Firebase setup #466

Closed probablypablito closed 1 year ago

probablypablito commented 1 year ago

Uses Firestore instead of Realtime DB

zlshames commented 1 year ago

@probablypablito this looks great! I'll need to convert it to a service class. One thing, did you implement a way to get the Client JSON? I see you implemented a way to get the services JSON, but how about the client JSON

zlshames commented 1 year ago

Also, any chance you can implement the ability to check if a project with the selected name exists, and if it does, just fetch the JSONs for the existing one? Basically, I want the following flow when setting up the server:

  1. Open the server for the first time
  2. Click button to sign in with google
  3. When the callback fires, check to see if a project exists, and if so, download the JSONs and move on with the setup.
  4. If the project doesn't exist, forward to a screen that shows the progress of the app setting up. Then downloads the JSON and moves on to the next step when done.

You dont have to worry about all that. But being able to check if a project exists already would help that workflow

probablypablito commented 1 year ago

I'm not sure what you mean by the Client JSON, I only did the ones that you have to drag and drop into BB currently.

GETing this URL will test if a project named bluebubblesexists: https://cloudresourcemanager.googleapis.com/v1/projects/bluebubbles

If it does running the getGoogleServicesJson and getPrivateKey functions will work.

zlshames commented 1 year ago

Closing as this is now implemented natively in my branch zach/google-login