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

Create docs for setting up Firebase for Contributor #4

Closed
rootCircle opened this issue Oct 4, 2023 · 4 comments · Fixed by #8
Closed

Create docs for setting up Firebase for Contributor #4

rootCircle opened this issue Oct 4, 2023 · 4 comments · Fixed by #8
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest

Comments

@rootCircle
Copy link
Owner

Description

Create the docs for setting up firebase account and push in the dummy data present in Schemas/ folder. And also setting up the required secrets in codemark/secrets.py

@rootCircle rootCircle added documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest labels Oct 4, 2023
@Petsamuel
Copy link
Contributor

@rootCircle
if this issue is available I would like to work on it

@rootCircle
Copy link
Owner Author

Sure @Petsamuel , go ahead! If you need any help, please ping me out in Issue Thread!

@rootCircle
Copy link
Owner Author

rootCircle commented Oct 4, 2023

Here is the dummy file for codemark/secrets.py file that need to be put in! Data is dummy!

import os

dir_path = os.path.dirname(os.path.realpath(__file__))
SERVICEACCOUNTFILE = os.path.join(dir_path,"firebase", "res", "service-account-file.json")
api_key="sk-asjkdsakdasasdklldas" # OPENAI KEY
dbURL = "https://codemark-jdxknzklndkasnkldjkasljd.firebasedatabase.app/"
firebaseConfig = {
    "apiKey": "jfdskjlksdflskfkslfk-QEhUe_bI",
    "authDomain": "codemark-hfksjdfksdf.firebaseapp.com",
    'databaseURL': dbURL,
    "projectId": "codemark-6f33a",
    "storageBucket": "codemark-sdjfkjkflsd.appspot.com",
    "messagingSenderId": "jfdskfjdsk",
    "appId": "1:lkjsdfjsdjfklsj:web:hsdfkjkdlsjfklsdj",
    "serviceAccount": SERVICEACCOUNTFILE
}
STORAGE_BUCKET_URL = 'codemark-jkhsdkfjskdfjlksdjf.appspot.com'

# from web3.storage
web3storage_api_key = 'zxjkkcljzxkc.eyJzdWIiOiJkaWQ'

@rootCircle
Copy link
Owner Author

Forgot to mention but there in an extra required file in codemark/firebase/res/service-account.json

{
  "type": "service_account",
  "project_id": "codemark-6f33a",
  "private_key_id": "urwoqr9qiop",
  "private_key": "-----BEGIN PRIVATE KEY-----\nfjkasljflksajflk",
  "client_email": "jfahsjkfhkajfklajm.gserviceaccount.com",
  "client_id": "328798237",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/xxxxxxxxxx",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/xxxxxxx"
}

rootCircle pushed a commit that referenced this issue Oct 6, 2023
* firebase-docs

* update-v2 firebase-docs.md

* firebase-docs v-3 update

* FIREBASE_SETUP.md update

* FIREBASE_SETUP.md update

* updated
rootCircle pushed a commit that referenced this issue Oct 13, 2023
* firebase-docs

* update-v2 firebase-docs.md

* firebase-docs v-3 update

* FIREBASE_SETUP.md update

* FIREBASE_SETUP.md update

* updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants