Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
No, it's just fine. Now if you got to your database. You will need to get the collection by name in your app.js. You would do that like so if your collection name is "projects":
// this will return all document in this collection
const allProjects = db.collection("projects").get()
//if you need to store something in the collection first store them in a variable in your code and then store them like below.
allProjects.set({// your data in here})
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
Thanks a lot!!! I’m currently working with all my Javascript in my HTML, but it is getting a little crowded. So should I move it to an app.js file? (I’ve also just followed you on GitHub)
Yea, that's what I will suggest. I had some examples with VanillaJS/Jquery -Firebase on my Github but I deleted them, I will try to create an example for you tomorrow.
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
So I found this great walk-through that should help.But you can reach out if you get stuck or have additional questions. Basically at the moment you are just storing the todo and retrieving from LocalStorage. You need to store in Real-time database instead. softauthor.com/learn-to-build-fire...
Self-taught designer, developer, and musician. JS, CSS, React, Next, Vue, Node, and much more. Studying computer information systems at Mississippi College.
Thanks! I’ve created a Firebase Realtime database. Should I use Firestore instead?
No, it's just fine. Now if you got to your database. You will need to get the collection by name in your
app.js
. You would do that like so if your collection name is "projects":firebase.google.com/docs/firestore...
firebase.google.com/docs/firestore...
You know what, I'll just probably make a pull request to show how you can do it.
Thanks a lot!!! I’m currently working with all my Javascript in my HTML, but it is getting a little crowded. So should I move it to an
app.js
file? (I’ve also just followed you on GitHub)Yea, that's what I will suggest. I had some examples with VanillaJS/Jquery -Firebase on my Github but I deleted them, I will try to create an example for you tomorrow.
Thanks so much! I’m going to add your name to the about page meanwhile. I really appreciate the help! 😇
Please let me know when you publish the example! I’d love to see it!
Yea, I will let you know. I have been a little bit ill.
Oh no! 😟 I’m so sorry! Hope you get well soon.
So I found this great walk-through that should help.But you can reach out if you get stuck or have additional questions. Basically at the moment you are just storing the todo and retrieving from LocalStorage. You need to store in Real-time database instead.
softauthor.com/learn-to-build-fire...
Thanks for the link! I’ll check it out. 😀