Create Firebase Project

14. Create Firebase Project

Firebase is the backend for the whole platform. Create one project and use it for the Admin Panel, the Restaurant Panel, the Website Panel and every mobile app.

14.1. Go to firebase.google.com and click Go to console in the top-right corner.

14.2. Click Add project, enter a project name and click Continue. Choose whether to enable Google Analytics, select the default account for Firebase, then click Create project.

14.3. From the project overview, click the Web (</>) icon to register a web app.

14.4. Enter an app nickname and click Register app. Scroll down to the configuration snippet and copy the values — these are the FIREBASE_* credentials you will paste into every panel’s .env file.

The same values can be read again at any time from Project Settings → General → Your apps:

14.5. In the left sidebar open Firestore Database and click Create database. Pick a location close to your users and start in the mode you prefer — the rules are replaced in step 14.9.

14.6. Open Realtime Database and click Create Database. It is used for live driver location tracking.

14.7. Open Storage and click Get started. Firebase Storage holds all uploaded images — restaurant and food photos, banners, avatars and verification documents.

14.8. Open Authentication → Sign-in method and enable Email/Password, Phone, Google and, for iOS, Apple. Under Authentication → Settings → Authorized domains, add your website and restaurant-panel domains.

14.9. Open Firestore Database → Rules, replace the contents with the rules below, and click Publish.

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

Apply the same rules under Storage → Rules so image uploads work. If a screen later fails to load data with a PERMISSION_DENIED message, check that these rules were published — see Troubleshooting.

14.10. Upgrade the project to the Blaze (pay-as-you-go) plan. Cloud Functions and any outbound call to a payment gateway require it.

14.11. Generate the service account key. Open Project Settings → Service accounts, choose Node.js and click Generate new private key. A JSON file downloads — you will use it for the Admin Panel (storage/app/firebase/credentials.json), for push notifications, and for the import/export utility.

Keep the service-account file private. It grants full administrative access to your Firebase project. Never commit it to Git and never place it inside a web-accessible folder such as public/.

See Video: