Firebase Not Connected
Connecting to Firebase...

Power Your
Sales Pipeline.

The all-in-one platform for energy deregulation agents โ€” track deals, manage customers, and earn commissions across electricity & natural gas markets.

โ€”
Active Agents
โ€”
Deals Closed
โ€”
Commissions
Dashboard
Demo Mode
๐Ÿ”ง Firebase Setup Guide
Follow these steps to connect your portal to Firebase โ€” takes about 20 minutes total.
1
Create a Firebase Project
Go to console.firebase.google.com โ†’ Click "Add project" โ†’ Name it energy-deregulator โ†’ Disable Analytics โ†’ Create project
2
Enable Google Authentication
In Firebase Console โ†’ Authentication โ†’ Get Started โ†’ Sign-in method โ†’ Google โ†’ Enable โ†’ Save
Then go to Authorized domains โ†’ Add energyderegulator.com and portal.energyderegulator.com
3
Create Firestore Database
In Firebase Console โ†’ Firestore Database โ†’ Create database โ†’ Start in test mode โ†’ Choose server location (us-central recommended) โ†’ Done
4
Get Your Config Keys
Project Settings (gear icon) โ†’ Your apps โ†’ Click web icon (</>) โ†’ Register app โ†’ Copy the firebaseConfig block
const firebaseConfig = {
  apiKey: "AIza...",
  authDomain: "your-project.firebaseapp.com",
  projectId: "your-project",
  ...
};
5
Paste Keys Into This File
Open energy-deregulator-portal.html in a text editor (Notepad, VS Code) โ†’ Find the section marked PASTE YOUR CONFIG HERE near the top โ†’ Replace each placeholder value โ†’ Save the file
6
Upload to Hostinger
hpanel.hostinger.com โ†’ Websites โ†’ Manage โ†’ File Manager โ†’ Navigate to /public_html โ†’ Create folder named portal โ†’ Upload file โ†’ Rename to index.html
Then in Hostinger โ†’ Domains โ†’ Subdomains โ†’ Add portal โ†’ points to /public_html/portal
7
Add Yourself as First Admin
After logging in for the first time, go to Firestore โ†’ users collection โ†’ find your document โ†’ change role field to Admin โ†’ Save. Then all future agents can be managed from inside the portal.
๐Ÿ’ต
$0
Revenue (MTD)
Loading...
๐Ÿค
0
Active Deals
Loading...
๐Ÿ‘ฅ
0
Total Customers
Live from Firebase
๐Ÿ’ฐ
$0
Commissions Pending
Loading...
Sales This Week
M
T
W
T
F
S
S
Recent Activity
โšก
Portal connected โ€” Firebase ready
Just now
โœ…
Google Auth enabled โ€” Agents can sign in
Active
๐Ÿ—„๏ธ
Firestore database โ€” Storing live data
Active
Top Agents โ€” This Month
Welcome, Agent ๐Ÿ‘‹
Your personal performance dashboard
0
My Deals
$0
Commission Earned
0
My Customers
โ€”
kWh Rate
โ€”
Therm Rate
My Recent Deals
DealCustomerTypeVolumeCommissionStatus
Loading deals...
Commission Summary
$0
Paid Out
$0
Pending Approval
Your Assigned Rates
Rates assigned by your manager will appear here.
Deal #CustomerAgentTypeVolumeRateValueStatusCommission
Loading deals from Firebase...
๐Ÿ’ฐ
$0
Total (MTD)
โœ…
$0
Paid Out
โณ
$0
Pending
Commission by Agent
AgentkWh RateTherm RatekWh SoldTherms SoldEarnedPaidPending%
Loading from Firebase...
โณ Pending Approvals
Deal #AgentCustomerVolumeCommissionDateAction
No pending approvals
โœ… Approved History
Deal #AgentCustomerCommissionApproved ByDate
No approved deals yet
NameTypeEnergyStateAgentStatusEnrolled
Loading customers...
AgentEmailRolekWh RateTherm RateDealsStatus
Loading agents from Firebase...
โšก
Energy Deregulator
Customer Enrollment Form
๐Ÿ“…
$0
Revenue MTD
โšก
0
kWh Sold
๐Ÿ”ฅ
0
Therms Sold
๐Ÿ’ฐ
$0
Commissions Paid
All Deals This Month
DealAgentCustomerTypeVolumeValueCommissionStatus
Loading...