π Create a Firestore Database
This is where you'll store all your user data and file information.
β In the left sidebar, go to Build > Firestore Database.
β Click the "Create database" button.
β On the "Select edition" screen, choose "Standard edition" and click Next.
β Choose a Cloud Firestore location (the default is fine or choose one closest to your users) and click Next.
β For the security rules, select "Start in test mode".
β Click "Create".
β Wait for Firebase to create your new database.
Create the Main Collection (Optional)
Once your database is ready, thereβs no need to do anything manually here. Your app will create all folders and users here automatically.
If itβs your first time using Firebase, add a collection and a first documents to learn how it works:
β Click "+ Start collection".
β For "Collection ID", type users and click "Next".
β For "Document ID", click "Auto-ID".
β Now, add the following fields to create a test document:
- Field:
email| Type:string| Value:test@test.com - Click Add field:
name| Type:string| Value:Test Jackson - Click Add field:
profile_photo| Type:string| Value:profile.jpg
β Click "Save".
You now have a users collection in your database, which is ready to store your app's user information.