What this does: Firebase is a free Google database that lets the monument company portal instantly send orders to MMW's office system over the internet — no emailing files back and forth. Setup takes about 10 minutes and the free plan is more than enough.
Go to Firebase and sign in with Google
Open firebase.google.com in your browser and click Get started. Sign in with any Google / Gmail account. If you don't have one, create a free Google account first.
Create a new project
Click Add project (or Create a project). Name it something like mmw-portal.
You can turn off Google Analytics — it's not needed. Click through and wait for the project to be created.
Create a Realtime Database
In the left sidebar, click Build → Realtime Database. Click Create Database.
When asked for a location, choose United States (us-central1) — it works fine for Canada too.
When asked about security rules, choose Start in test mode. Click Enable.
Copy your Database URL
Once the database is created, you'll see a URL at the top of the page. It looks like:
https://mmw-portal-abc12-default-rtdb.firebaseio.com
Copy that URL — you'll paste it into two files in the next step.
It always ends in .firebaseio.com — no trailing slash.
Paste the URL into both files
Open each file below in a text editor (right-click → Open with → Notepad).
Find the line shown and replace YOUR_FIREBASE_URL with your copied URL.
- Find:
const FIREBASE_URL = 'YOUR_FIREBASE_URL'; - Replace with:
const FIREBASE_URL = 'https://your-project-default-rtdb.firebaseio.com';
- Find:
const PORTAL_FIREBASE_URL = 'YOUR_FIREBASE_URL'; - Replace with:
const PORTAL_FIREBASE_URL = 'https://your-project-default-rtdb.firebaseio.com';
Save both files. The yellow warning banner will disappear from the portal once it's working.
Test it
Open the portal (index.html) in the monument company's browser and submit a test order.
Then open the MMW Office System — the order should appear in Portal Inbox within seconds.
To confirm it worked, you can also open the Firebase console and look under Realtime Database → Data → portal_inbox — you should see the order there.
Orders submitted from any monument company portal will now appear in MMW's Portal Inbox in real time, and status updates (In Progress, Complete, Issue) will sync back to the company's portal automatically.
Test mode expires after 30 days. To keep things working, go to Firebase → Realtime Database → Rules and replace the rules with:
{
"rules": {
"portal_inbox": {
".read": true,
".write": true
}
}
}
This keeps the portal_inbox path open while locking everything else in your database. For a higher-security setup you can add authentication later — but this is fine for a private B2B tool.