All code has been updated to use Firebase instead of Supabase:
- Firebase Authentication for login
- Firestore Database for properties and inquiries
- All HTML files updated with Firebase SDKs
- All JavaScript files rewritten for Firebase
- Go to: https://console.firebase.google.com/
- Click Add project
- Name:
reewa-homes - Disable Google Analytics (optional)
- Click Create project
- Click the Web icon (</>)
- App name:
Reewa Homes - Copy the
firebaseConfigobject - Open
firebase-config.js - Replace the placeholder values with your config
- Go to Authentication > Get started
- Click Email/Password
- Enable it
- Click Save
- Go to Firestore Database > Create database
- Select Start in production mode
- Choose location: asia-south1 (Mumbai)
- Click Enable
- Click Rules tab
- Paste this:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /properties/{propertyId} {
allow read: if true;
allow write: if request.auth != null;
}
match /inquiries/{inquiryId} {
allow create: if true;
allow read, update: if request.auth != null;
}
}
}- Click Publish
- Go to Authentication > Users
- Click Add user
- Email: your-email@example.com
- Password: your-password
- Click Add user
Test your website:
- Open
index.html- see properties - Submit an inquiry
- Go to
login.html- login with your credentials - View inquiries in admin panel
✅ Browse properties (demo data shows automatically) ✅ Submit inquiries (saved to Firebase) ✅ Admin login (Firebase Authentication) ✅ Add/Edit/Delete properties (saved to Firebase) ✅ View all inquiries with customer details ✅ Update inquiry status ✅ Works in India (Firebase is not blocked)
- Free tier: 50K reads, 20K writes per day
- Real-time updates
- Works in India
- No backend code needed
- Automatic scaling
- Built-in security
Your website is now powered by Firebase! 🚀