This guide will get you up and running with online multiplayer in 15 minutes.
- A Google account (free)
- 15 minutes of your time
- Go to https://console.firebase.google.com/
- Click "Add project"
- Name it (e.g., "Initiative Tracker")
- Disable Google Analytics
- Click "Create project"
- In Firebase Console, click "Build" → "Realtime Database"
- Click "Create Database"
- Choose your region (closest to your players)
- Select "Start in test mode"
- Click "Enable"
- Go to "Rules" tab in Realtime Database
- Paste this:
{
"rules": {
"sessions": {
"$sessionId": {
".read": true,
".write": true
}
}
}
}- Click "Publish"
- Click the gear icon ⚙️ → "Project settings"
- Scroll to "Your apps"
- Click "</>" (Web icon)
- Name it "Initiative Tracker Web"
- Click "Register app"
- Copy the firebaseConfig object
-
Copy the template file:
cp firebase.config.template.ts src/firebase.config.ts
-
Edit
src/firebase.config.tswith your Firebase values -
Build and deploy:
pnpm build git add -A git commit -m "Enable online mode" git push
- Open your initiative tracker
- Toggle "Online Mode" to ON
- Click "Copy Player URL"
- Share the URL with your players
- Open the URL shared by DM
- That's it! Updates happen in real-time
Can't toggle online mode?
- Make sure
src/firebase.config.tsexists with valid config
Changes not syncing?
- Check your internet connection
- Verify session ID is in the URL
Build failing?
- Make sure you ran
pnpm installafter pulling the code - Check that Firebase dependency was installed
Firebase free tier includes:
- 100 simultaneous connections
- 1 GB storage
- 10 GB/month data transfer
Perfect for gaming groups!
See ONLINE_MODE_SETUP.md for:
- Detailed explanations
- Security considerations
- Advanced configuration
- Full troubleshooting guide