Skip to content

A Django + Firebase Realtime Database integration guide and example project. Easily connect your Django app with Firebase to store and retrieve user data using the Firebase Admin SDK.

License

Notifications You must be signed in to change notification settings

shoaibatmaca/FirebaseRealtimedbInDjango

Repository files navigation

Django + Firebase Realtime Database Integration

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.


🚀 Features

  • 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)

🔧 Prerequisites

  • Python 3.10+
  • Django 4+ / 5+
  • Firebase project with Realtime Database enabled
  • Service Account Key from Firebase Console

⚡ Setup Guide

1. Firebase Setup

  1. Go to Firebase Console.
  2. Create a project → Enable Realtime Database.
  3. Go to Project Settings → Service Accounts.
  4. Click Generate new private key → download JSON file.
  5. 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

About

A Django + Firebase Realtime Database integration guide and example project. Easily connect your Django app with Firebase to store and retrieve user data using the Firebase Admin SDK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published