Description
In this course, you will learn:
- How to setup Firebase
- Authentication
- Email and password auth
- Google auth
- Sign in/out
- Cloud Firestore
- Adding data to a db
- Fetching data
- Updating data in realtime
- Security Rules
- Functions in Security Rules
- Queries
- Updating documents
- Deleting documents
Syllabus:
1. Authentication
- Asking for your help
- Authentication Intro
- Looking at the starter code
- Firebase Setup
- Important note about challenges
- Authentication Setup
- Create user with email and password
- Sign in with email and password
- Sign out
- onAuthStateChanged: Logged in or out?
- Sign in with Google
- Show user profile picture
- Greet user with first name
- Update profile
2. Cloud Firestore
- Cloud Firestore Intro
- Cloud Firestore Setup
- Adding a document to a collection
- Data types
- Adding unique user id (UID) to post
- Adding date of creation with serverTimestamp
- Adding mood emojis to record mood value
- Fetching data once with getDocs
- Convert newlines to break tags
- What’s in a doc?
- Fetching data in realtime with onSnapshot
- Security Rules Intro
- Only let authenticated users read and write
- Queries: Only fetch what you need
- Only show users their own posts
- Custom functions in Security Rules
- Order posts by date
- Add date filters
- Changing renderPost function to use createElement
- Updating a document
- Deleting a document