Git Product home page Git Product logo

angular-todomvc-reflux's Introduction

Angular-TodoMVC-Reflux

Build Status

Motivation

Demonstrates the usage of modern javascript libraries and architechture within the context of a relatively simple Angular application: the long-standing TodoMVC.

Conventional Angular-esque MVC is eschewed in favor of using directives as lightweight modular components backed by Reflux.js stores and a unidirectional data flow. All data is immutable through use of Immutable.js.

Data is (optimistically) persisted locally with PouchDB. I currently do not do any syncing with a server but this could be trivially implemented. Aditionally, the unidirectional data flow means the persist store could be swapped out with something that talks to a server directly without changing any other part of the application.

UI state is driven by Bacon.js with Reflux actions used to model and emit events. Local ui-specific state is maintained by some components but I deliberately do not make use of Angular's two way data binding to communicate state across components.

All JS is writtin in ES6, transpiled with Babel, and tested with Karma and Jasmine

Running

You must have npm installed on your computer. From the root project directory run these commands from the command line:

npm install

This will install all dependencies.

To start the project, run this command:

npm start

Point your browser at https://localhost:8000 to view the project.

Alternatively, deploy the project for free on Heroku for a zero-configuration install.

Deploy

Contributing

  • Fork it

  • Clone it

    git clone https://github.com/*YOUR-USERNAME*/angular-flux
    
  • Hack it

  • Test it (contribute some more!)

    npm test
    
  • Open a PR!

angular-todomvc-reflux's People

Contributors

javamonn avatar

Watchers

 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.