Category : firebase

I try to remove the .html extension in firebase hosting, its working below 5 pages, if i add more than 5 pages .html extension not working.. and how to access sub folder path e.g. "/products/item.html" { “hosting”: { “public”: “public”, “ignore”: [ “firebase.json”, “**/.*”, “**/node_modules/**” ], “rewrites”: [ { “source”: “/login.html”, “destination”: “/login”, “type” : ..

Read more

I tried Object.keys(user).forEach(item => { console.log(item) }) but response is simply 5 { "5": { "avatar": "https://reqres.in/img/faces/12-image.jpg", "banner": "https://via.placeholder.com/1500×500.png?text= Banner", "email": "[email protected]", "id": 12, "links": { "fb": "https://www.facebook.com/", "ig": "https://www.facebook.com/", "twt": "https://www.facebook.com/", "yt": "https://www.facebook.com/" }, "name": "Rachel Howell", "walletAddress": "howell111" } } please help me solve this Well, how about adding more details. Like, what ..

Read more

Hello here is my code: const selectedWeek = selectBoxWeek.options[selectBoxWeek.selectedIndex].value; const selectedStudent = selectBoxAttStud.options[selectBoxAttStud.selectedIndex].value; const selectuser = await db.collection(‘Presence’).where(‘UserId’, ‘==’, selectedStudent).get(); const getA= selectuser.docs.map(doc=>doc.id); db.collection(‘presence’).doc(getA[0]).update({ selectedWeek: 1 }); In the selectedWeek variable, I get the week I want to update. But but I get this error: Uncaught (in promise) FirebaseError: No document to update: Because selectedWeek ..

Read more

im getting error while connecting my html code to firebase database const firebaseConfig = { apiKey: "AIzaSyBSu7dx2w4GY6_HiPYyv0Gj_xDddoPa8hI", authDomain: "assistant2-139ff.firebaseapp.com", databaseURL: "https://assistant2-139ff-default-rtdb.firebaseio.com", projectId: "assistant2-139ff", storageBucket: "assistant2-139ff.appspot.com", messagingSenderId: "888617709384", appId: "1:888617709384:web:a325963680f27cccea4d7d", measurementId: "G-W9NKQV6N45" }; // Reference messages collection var messagesRef = firebase.database().ref(‘Login Details’); // Listen for form submit document.getElementById(‘contactForm’).addEventListener(‘submit’, submitForm); // Submit form function submitForm(e){ e.preventDefault(); /* ..

Read more