Firebase Setup
Set up Firebase authentication for your DevOur project.
Create a Firebase Project
- Go to the Firebase Console
- Click Add project
- Enter a project name and click Create project
Register a Web App
- In your Firebase project, click the Web icon (
</>) - Enter an app nickname
- Click Register app
- Copy the configuration values shown:
const firebaseConfig = {
apiKey: 'AIzaSy...',
authDomain: 'your-project.firebaseapp.com',
projectId: 'your-project',
storageBucket: 'your-project.appspot.com',
messagingSenderId: '123456789',
appId: '1:123456789:web:abc123'
}
Enable Authentication
- In Firebase Console, go to Build > Authentication
- Click Get started
- Enable Email/Password authentication
- Optionally enable Google or other providers
Generate Service Account File
The server needs a service account to verify tokens:
- In Firebase Console, click the gear icon > Project settings
- Go to Service accounts tab
- Click Generate new private key
- Save the JSON file securely
Never share this file or commit it to version control.
Configure in DevOur
Add your Firebase credentials in the DevOur web app:
- Open your project in DevOur
- Go to Settings
- In the Firebase Configuration section, enter:
- API Key
- Auth Domain
- Project ID
- Storage Bucket
- Messaging Sender ID
- App ID
- Measurement ID (optional)
- Upload your service account JSON file
- Click Save
For more details on available settings, see Project Settings.
Set Up Firestore (Optional)
If your application uses Firestore:
- Go to Build > Firestore Database
- Click Create database
- Choose a location and security mode
- Configure security rules as needed
Verify Setup
After downloading and running your project bundle, check the browser console for Firebase errors. The server logs should show successful Firebase initialization.