immersive-web / webvrrocks

Your guide to Virtual Reality in the browser.
https://webvr.rocks/
Creative Commons Zero v1.0 Universal
123 stars 58 forks source link

Enable real-time syncing of Directory updates #86

Open cvan opened 7 years ago

cvan commented 7 years ago

Every time a change is made to the Google Sheets spreadsheet (so you don't have to explicitly run npm run syncdb every time), the Directory gets updated in Firebase.

In /js/directory.js here, we just have to listen for the item changes from the Firebase reference, re-render the changed items in ul#directory-list (ideally using the same Nunjucks template, fragment-directory-item.html, plus some virtual-DOM diffing, using virtual-dom/mithril/etc.).

cvan commented 7 years ago

Task runner is in https://github.com/webvrrocks/tasks/. Have a branch called airtable-db that introduces a new command for local dev: npm run db