Dashboard

An overview of your business ecosystem and a Firestore example.

Total Revenue
$0

Revenue calculation not implemented

Total Businesses
0

Currently managed

Total Users
0

Across all businesses

Write to Firestore
This form demonstrates writing data. It will add a new document to the 'posts' collection.
Read from Firestore
This list demonstrates reading real-time data from the 'posts' collection.Open Firebase Console to see your data
Best Practices & Troubleshooting

Security Rules: If you can't connect to Firestore, your Security Rules are the most likely cause. By default, they block all access. For development, you can open them up by navigating to the Firebase Console, selecting your project, going to Firestore Database > Rules, and using these rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

Important: These rules allow anyone to read or write to your database. Secure your data properly before deploying to production.

Modularity: The Firebase initialization code is in a separate file (src/lib/firebase.ts). This makes it easy to import and use Firebase services anywhere in your app without re-initializing.