Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project's firebase #1

Closed
telmas opened this issue Apr 9, 2020 · 3 comments
Closed

Project's firebase #1

telmas opened this issue Apr 9, 2020 · 3 comments

Comments

@telmas
Copy link

telmas commented Apr 9, 2020

Hi, excellent project. is there any way for you to share the project's firebase? Or the structure? I would like to recreate it.

@git-akshat
Copy link
Owner

git-akshat commented Apr 10, 2020

@telmas you need not to create any structure. Just give necessary permissions in the firebase and connect your project to the firebase.

@git-akshat
Copy link
Owner

git-akshat commented Apr 10, 2020

Here are some steps to quickly connect firebase with the project

  1. Firebase -> authentication -> signin method -> enable login with email/password

  2. Firebase -> database -> real-time database -> rules
    Remove old rules and paste the following lines

    {
      "rules": {
        ".read": true,
        ".write": true
        }
    }
    
  3. Firebase -> storage -> rules -> edit rules
    Remove old lines and add below lines

    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write: if true;
        }
      }
    }
    
  4. Download firebase plugin in android studio

  5. In android studio goto tools -> firebase

  • Connect firebase with an existing or new project
  • Add Storage dependency
  • Add database dependency

@telmas
Copy link
Author

telmas commented Apr 10, 2020

Thank you very much! Was able to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants