Step 1: Go to Firebase Console
Visit https://console.firebase.google.com
Sign in with your Google account.
Step 2: Create a New Project
Click "Add project" and follow the setup wizard
- Enter a project name
- Choose whether to enable Google Analytics (optional)
- Click "Create project"
Step 3: Enable Firestore Database
In your project dashboard:
- Click on "Firestore Database" in the left menu
- Click "Create database"
- Choose "Start in production mode"
- Select a location closest to you
- Click "Enable"
Step 4: Get Your Credentials
Firebase API Key:
- Click the gear icon ⚙️ next to "Project Overview"
- Go to "Project settings"
- Scroll down to "Your apps" section
- Click the web icon "</>" to create a web app
- Copy the "apiKey" value from the config
Project ID:
Found in Project settings → General → Project ID
User ID:
Create a unique identifier (e.g., your email or custom ID) to separate your data from other users
Step 5: Configure Security Rules
Go to Firestore Database → Rules and use these rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
⚠️ These rules allow public access. For production, implement proper authentication!
Note: Firebase free tier (Spark plan) includes 1 GiB storage and 50K reads/day.
Perfect for personal task and note syncing!