I have a CRUD app which is a telegram bot written in express axios. I’m using firestore SDK and firebase npm package which seems like the preferred way to use my cloud firestore DB
const firebaseConfig = {
apiKey: FIREBASE_API_KEY,
authDomain: FIREBASE_AUTH_DOMAIN,
projectId: FIREBASE_PROJECT_ID,
storageBucket: FIREBASE_STORAGE_BUCKET,
messagingSenderId: FIREBASE_MESSAGING_SENDER_ID,
appId: FIREBASE_APP_ID,
measurementId: FIREBASE_MEASUREMENT_ID,
};
let app;
let firestoreDb;
const initializeFirebaseApp = () => {
try {
app = initializeApp(firebaseConfig);
firestoreDb = getFirestore();
return app;
} catch (error) {
errorHandler(error, "firebase-initializeFirebaseApp");
}
};
i have the setup done and its working fine without any rules
i read rule doc on official firestore cloud, and it was mostly about about how to write conditions, i couldnt find a straight forward documentation or guide about my problem.
I want my app to have full write/read access to my database how can i set rules for that?