Skip to content

todo mvc example #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions examples/disto-todomvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Disto Flux TodoMVC Example

> Facebook [Flux] todo mvc example as base
> An application architecture for React utilizing a unidirectional data flow.


## Learning Flux

The [Flux](http://facebook.github.io/flux) and [React](http://facebook.github.io/react) websites are great resources for getting started.

Read the blog post announcing Flux: ["An Application Architecture for React"](http://facebook.github.io/react/blog/2014/05/06/flux.html), then read more about the [Flux architecture](http://facebook.github.io/react/docs/flux-overview.html) and a [TodoMVC tutorial](http://facebook.github.io/flux/docs/todo-list.html) explaining the structure of the files in this folder. After you feel comfortable with the TodoMVC example, you may be interested in the [Chat App example](../flux-chat), which is more complex.

## Running Example

`npm install` Open index.html

if you change any code run below in your CLI

`browserify ./js/app.js -t [babelify --stage 0] > js/bundle.js`
18 changes: 18 additions & 0 deletions examples/disto-todomvc/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2014-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* base.css overrides
*/
/**
* We are not changing from display:none, but rather re-rendering instead.
* Therefore this needs to be displayed normally by default.
*/

#todo-list li .edit {
display: inline;
}
Binary file added examples/disto-todomvc/css/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading