Giter VIP home page Giter VIP logo

pierreavizou / universal-routed-flux-demo Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 12.0 204 KB

The code in this repo is intended for people who want to get started building universal flux applications, with modern and exciting technologies such as Reactjs, React Router and es6.

License: MIT License

JavaScript 75.17% CSS 24.83%
flux universal-applications react universal-flux-applications tutorial facebook flux-architecture react-router immutablejs immutable

universal-routed-flux-demo's Introduction

Universal Flux example with React and React-Router

UPDATE 2 : On the immutable branch you will find the app's TodoStore and LogStore implemented with Facebook's Immutable library. The implementation is inspired by this one.

UPDATE : On the flux-utils branch you will find the flux architecture implemented with Flux's bundled flux/utils.

The code in this repo is intended for people who want to get started building universal flux applications, with modern and exciting technologies such as React, React Router and es6.

It consists of an example Todo Application built with flux and inspired by the Facebook Flux tutorial.

The app has been rewritten to be fully universal (or isomorphic), use es6, React Router, have a log component and provide asynchronous server communication.

It combines the following notions in a full-featured example:

  • es6
  • Using React Router with server-side rendering
  • Flux architecture for universal applications
  • Multi-store application
  • Asynchronous server communication with visual feedback

Visual feedback

Purpose

This example app is here in the hope that it will help people getting started building great apps that use these recent technologies.

After struggling to find guides and tutorials that combined everything I wanted to build an app, I decided to write and share an example of my own.

Run the app

The first thing you should do is clone the repo. Then, cdinto the project folder and run npm install. This will download all the dependencies.

Finally, all you have to do is run node entrypoint.js or npm start.

Notes

This app purposely uses no flux framework. The main reason is that frameworks usually hide many stuff from the user, which prevents from understanding properly how things work.

Plus, the Flux architecture is reasonably clean, simple and elegant by itself, so using a framework is often not necessary, especially in example code.

universal-routed-flux-demo's People

Contributors

jocs avatar pierreavizou avatar

Stargazers

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