Giter VIP home page Giter VIP logo

flux-backbone-firebase-todo's Introduction

Flux Backbone Firebase Todos Example

This is the Flux Backbone Todos app with minor modifications to add Firebase persistance.

The changes are minimal, largely amounting to replacing the Backbone Todo Collection with a BackboneFire Collection. The remaining changes replaced node modules with <script> tags because Firebase JavaScript modules are not (as of November 2014) distributed via npm -- this in turn does away with the need to bundle the app for distribution using Webpack.

IMPORTANT: You will need to create your own Firebase account to run or deploy the application and you will need to:

  1. Edit firebase.json and change the "firebase" property to your Firebase name.
  2. Edit ./app/app.jsx change the Collection url property to your Firebase URL.

Lessons learnt

  • If the BackboneFire Collection autoSync property is true (the default value) then do not use Backbone Model/Collection fetch/save/destroy syncing functions -- BackboneFire does that for you.

  • The app does not use ReactFire, there's no need because the app does not use component State properties.

  • Firebase Hosting is HTTPS by default, this means that you need to load external content via HTTPS otherwise you will get browser Mixed Content errors. If you leave the protocol prefix off a URL the browser treats it as a relative URL and so it will use the same protocol as it used to load the page e.g.

      src="//cdn.firebase.com/js/client/2.0.5/firebase.js"></script>
    

flux-backbone-firebase-todo's People

Contributors

srackham avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.