Firebase Mini Blog
Create a user, log in, post something, then save & load it from Firestore.
Logged in as
(no one)
1 Create User
This only exists in blogApp.users for now.
2 Log In
Sets the loggedIn variable
and reveals the post box.
4 Firestore
Saves and loads the entire blogApp object.
Check the console to see the document snapshot and loaded data.
3 New Blog Post
Posts are pushed into blogApp.posts with
author: loggedIn.
Tip: create a user → log in → write a post → save to Firestore.
Posts Preview (Optional)
If you want, you can write a tiny function to loop
blogApp.posts and render them into this box.
No posts rendered yet. They’re still just living in memory / Firestore.