Learnr

Learn Firebase

Add sign-in, a live database and hosting to your app without running servers.

Free to start. No credit card. Or browse all courses.

What's inside your Firebase course

A sample path Learnr builds for Firebase. Your real course adapts to your goal and level.

  1. Firebase projects, the console and the client SDKs
  2. Authentication and user sessions
  3. Cloud Firestore: documents, collections, queries and listeners
  4. Security rules and data validation
  5. Cloud Functions, Storage and Hosting
  6. Emulators, cost awareness and production readiness

Firebase is Google's app development platform that provides backend services you call directly from a web or mobile app. The pieces most people learn first are Authentication for sign-in, Cloud Firestore for a document database that syncs in real time, Cloud Storage for files, Cloud Functions for server code and Hosting for static sites. Because clients talk to the database directly, security rules are not optional: they are your backend logic. Data modeling also differs from SQL. Learnr teaches Firebase through short lessons and hands-on tasks that build one app feature at a time.

How to learn Firebase, step by step

  1. Set up a project and add sign-in. Create a Firebase project, register a web or mobile app and add Authentication with email and one social provider. Listen for auth state changes so your interface knows when a user signs in or out.
  2. Learn Firestore data modeling. Firestore stores documents in collections with no joins. Model a simple app like a reading list, decide what belongs in subcollections, and accept some duplication so each screen needs few reads.
  3. Write security rules from the start. Replace the open test rules with rules that check request.auth.uid and validate fields. Use the Rules Playground or emulator tests to prove one user cannot read another user's documents.
  4. Use real-time listeners carefully. Subscribe to queries with onSnapshot to update the UI live, and unsubscribe when screens close. Create composite indexes when the console asks, and paginate with cursors instead of loading whole collections.
  5. Add Cloud Functions for trusted work. Move logic that clients must not control, like awarding points or sending emails, into functions triggered by Firestore writes or HTTPS calls. Run them in the Emulator Suite before deploying.
  6. Ship and review regularly. Deploy with the Firebase CLI, set budget alerts and watch read counts in the console. Short Learnr lessons help keep rule syntax and Firestore query limits in mind.

What you'll learn

  • Add email and Google sign-in with Firebase Authentication
  • Model data as Firestore collections and documents and query it
  • Write and test security rules that protect each user's data
  • Run server-side logic with Cloud Functions triggers
  • Develop locally with the Emulator Suite and deploy with the Firebase CLI

How long does it take to learn Firebase?

Front-end developers can add authentication and a Firestore-backed feature in a week or two. Becoming confident with data modeling, rules and Cloud Functions usually takes 4 to 8 weeks at 5 hours a week, depending on how complex your app is.

What you need before you start

JavaScript, Swift, Kotlin or Dart for the platform you build on, plus basic experience making a web or mobile app. No server administration knowledge is needed.

Common mistakes to avoid

  • Shipping with test mode rules that allow anyone to read and write everything. Lock rules down before real users arrive.
  • Designing Firestore like a SQL database with many small related collections, which multiplies reads. Shape documents around the screens that read them.
  • Trusting the client to enforce limits like scores or prices. Anything a user could change in their browser must be checked in rules or a Cloud Function.

How Learnr builds your course

Type your topic

Tell Learnr you want to learn Firebase, or get as specific as you like.

Get a personalized course

Learnr instantly builds a full Firebase course tailored to your goal and skill level.

Learn and level up

Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.

Firebase questions, answered

Is Firebase free to use?

Firebase has a no-cost plan with usage limits that is enough for learning and small projects, plus a pay-as-you-go plan required for some features such as Cloud Functions. Check current limits on the official pricing page and set budget alerts.

Firestore or Realtime Database?

Firestore is the newer, recommended choice for most apps, with richer queries and better scaling. The Realtime Database stores one large JSON tree and can suit simple, very low-latency sync use cases.

Can I use Firebase with Flutter or React Native?

Yes. FlutterFire provides official Flutter plugins, and React Native apps commonly use a community-maintained library or the web SDK. The concepts of auth, Firestore and rules are the same across platforms.

Explore more courses

More programming and tech courses

See all programming and tech courses

Ready to learn Firebase?

Start your free, personalized Firebase course in seconds. It will be typed in and ready when you get there.

Start learning Firebase

Free to start. No credit card.