Giter Site home page Giter Site logo

live-todos's Introduction

A clone of Trello to illustrate the power of my Ember Data Firebase Adapter.

Plan

This is a standard to-do list example, but ups the ante with multi-user editing on various todo lists. Each individual list (not a board like Trello) can be shared between various users.

Back-End Info

There are three "resources" in play here:

  • Users are stored at /users/<user email>. The lists property contains the IDs of the list resources a user has access to. This is an example of a relational hasMany association.
  • Lists are stored at /lists/<id>. Each list property contains a title for the list, the users who have access to it in an array (another relational hasMany association), and...
  • List items, which are stored at /lists/<id>/items/<id>. These items are embedded in the /lists/<id>/ resource when retrieved.

Live Updating

Here's the eventual goal of live updating everything:

  • Users collaborating on a list will see the items in the list be updated automatically. Right now, they can already see updates to existing items.
  • A user can add another user to their list, and the added user will see the list show up in their lists view.

These will rely on new additions to the Ember Firebase adapter (in the Model layer) that will allow relationships to be listened to for updates.

Authentication/Security

Lists are restricted to editing only by their creators and the users who they have shared their list with. This is enforced by authentication using Mozilla Persona (through Firebase's Simple Login API) and Firebase security rules (viewable in db/firebase_rules.json).

live-todos's People

Contributors

thomasboyt avatar

Stargazers

 avatar  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.