Data is stored in the Firebase Realtime Database and synced live across devices. Make sure your security rules allow the Scriptorium node.
- In the Firebase console, open Build → Realtime Database.
- Open the Rules tab and make sure the rules include the scriptorium and libraries nodes below, then Publish.
- Deploy this HTML file to Netlify as usual — no other setup needed.
Add this inside your existing "rules" block:
"scriptorium": {
"boards": {
"$boardId": {
".read": "auth != null",
".write": "auth != null"
}
}
}
Boards are listed privately per teacher under libraries/{your-uid}/scriptorium (that node is already covered by your libraries rule). Writing & comments live under scriptorium/boards so students can post.