SashenJayathilaka / Reddit-Clone

Reddit Clone with REACTJS (Next.js, Firebase v9, Chakra UI, TypeScript, Recoil, (Image Uploading, Google Authentication, Create Community, Join Community, Leave Community, Upvote and Downvote Posts), Dark Mode & Light Mode, Data Encryption and Decryption)
https://reddit-sclone.vercel.app
135 stars 51 forks source link

Request - More info on how to setup Firebase. #56

Open Jackster opened 1 year ago

Jackster commented 1 year ago

Thanks for creating this project. Looking to use it as a base to something.

I am new to Firebase. Could you add more info on how to set it up? I got basic auth working and I presume Google login.

But trying to create a community, it has this error. POST https://firestore.googleapis.com/v1/projects/APPID/databases/(default)/documents:batchGet 403 index.esm2017.js?b836:78 [2023-04-12T00:28:09.713Z] @firebase/firestore: Firestore (9.9.3): RestConnection BatchGetDocuments failed with error: {"code":"unknown","name":"FirebaseError"} url: https://firestore.googleapis.com/v1/projects/APPID/databases/(default)/documents:batchGet request: {"documents":["projects/APPID/databases/(default)/documents/communities/test"]}

I presume I need to setup the database. Not sure how to do this.

Thank you

SashenJayathilaka commented 1 year ago

Are you enabled firebase firestore database

Jackster commented 1 year ago

I think so. I enabled it and created a database. It did not as for much detail other than production or dev.

SashenJayathilaka commented 1 year ago

You can check the Firebase rules. Check to see if the firestore database timestamp has expired. 

meghana1710 commented 10 months ago

could you please tell me where we can find NEXT_PUBLIC_CRYPTO_SECRET_PASS value

SashenJayathilaka commented 10 months ago

NEXT_PUBLIC_CRYPTO_SECRET_PASS=anything