This project demonstrates how to integrate Firebase Realtime Database with Django using the Firebase Admin SDK.
You can add users and list users directly from Firebase inside a Django web app.
- Connect Django to Firebase Realtime Database
- Add users (name + email) into Firebase
- List users stored in Firebase
- Secure connection using Firebase Admin SDK
- Uses environment variables for Firebase credentials (no secrets in repo)
- Python 3.10+
- Django 4+ / 5+
- Firebase project with Realtime Database enabled
- Service Account Key from Firebase Console
- Go to Firebase Console.
- Create a project → Enable Realtime Database.
- Go to Project Settings → Service Accounts.
- Click Generate new private key → download JSON file.
- Store it safely, e.g.:
💡 Tips
Keep commits small and meaningful. Follow existing code style. Do not commit secrets like serviceAccountKey.json.
👨💻 Author
Muhammad Shoaib
💼 GitHub: shoaibatamaca 📧 Email: mshoaibkaglur@gmail.com