Full Stack Development
Firebase Onboarding
Step-by-step guide to setting up Firebase in your Full Stack project
This guide walks you through the process of integrating Firebase into your Full Stack project. The onboarding process consists of five key steps, each designed to ensure proper setup and configuration of Firebase services.
Step 1: Add Firebase Project
Instructions:
- Go to the Firebase Console
- Click on “Add project”
- Give your project a name
- Choose whether to enable Google Analytics (optional)
- Accept the Firebase terms
- Click “Create project”
- Wait for project setup to complete
Step 2: Setup Firebase Client SDK
Instructions:
- In Firebase Console, go to Project settings (gear icon)
- In the “Your apps” section, click the web icon (
</>
) - Register your app with a nickname
- Copy the Firebase configuration object
- Paste the configuration in the provided field
Configuration Example:
Step 3: Setup Firebase Services
Required Services:
- Authentication
- Firestore
- Realtime Database
- Storage
Instructions:
- Navigate to each service in Firebase Console
- Follow the activation prompts
- Configure initial settings
- Verify service activation
Step 4: Setup Service Account
Instructions:
- Go to Project settings > Service accounts
- Click “Generate new private key”
- Save the JSON file securely
- Copy the Firebase Admin SDK initialization snippet
- Upload the service account JSON file
Admin SDK Example:
Step 5: IAM Service Account Setup
Required Roles:
- Firebase Admin
- Firebase Authentication Admin
- Cloud Datastore User
- Storage Admin
Instructions:
- Access IAM & Admin page
- Locate your service account
- Edit permissions (pencil icon)
- Add required roles
- Save changes
Important Notes
- Complete all steps in order
- Verify each service activation
- Ensure proper IAM permissions
- Keep service account JSON secure
- Test configuration before deployment
Troubleshooting
Common Issues:
-
Service Account Permissions
- Verify all required roles are assigned
- Check IAM permissions page
-
Configuration Errors
- Double-check Firebase config object
- Verify service account JSON format
-
Service Activation
- Confirm all required services are enabled
- Check Firebase Console for any alerts
Next Steps
After completing the Firebase onboarding:
- Test authentication flows
- Set up database rules
- Configure storage permissions
- Implement real-time features
For detailed guides on using specific Firebase features, refer to: