GithubHelp home page GithubHelp logo

Add more examples about alt HOT 13 OPEN

goatslacker avatar goatslacker commented on June 28, 2024
Add more examples

from alt.

Comments (13)

goatslacker avatar goatslacker commented on June 28, 2024

This is the best example I've seen thus far:

https://github.com/voronianski/flux-comparison/tree/master/alt

It doesn't have some of the bullet points you mention though.

There are a few isomorphic examples here, but they're rather simple:

https://github.com/goatslacker/iso/tree/master/examples

A few other example flux apps not related to alt:

https://github.com/goatslacker/example-ismorphic-one
https://github.com/goatslacker/isomorphic-react-template
https://github.com/goatslacker/flux-react-router-example

I'm definitely interested in providing a few more complex examples.

from alt.

pekeler avatar pekeler commented on June 28, 2024

Thanks Josh!

from alt.

goatslacker avatar goatslacker commented on June 28, 2024

There are a few examples popping up in the near future. I'll close this ticket once they're out in the wild.

from alt.

goatslacker avatar goatslacker commented on June 28, 2024

A complex example was recently open-sourced by Airbnb.

https://github.com/airbnb/airpal/tree/master/src/main/resources/assets

from alt.

troutowicz avatar troutowicz commented on June 28, 2024

Here's another example. It shows how to use socket.io with alt and use @goatslacker's iso library in an isomorphic app. It also has user authentication and some db operations.

https://github.com/troutowicz/geoshare

from alt.

goatslacker avatar goatslacker commented on June 28, 2024

Super awesome. I need to make an EXAMPLES.md file to host all these.

from alt.

goatslacker avatar goatslacker commented on June 28, 2024
  • Isomorphic Example
  • REST Example
  • CRUD Example
  • Pagination Example
  • Derived Data Example

from alt.

goatslacker avatar goatslacker commented on June 28, 2024

There's now an examples section on readme

https://github.com/goatslacker/alt#examples

from alt.

hekar avatar hekar commented on June 28, 2024

Any example of how to send an error to a view in Flux? I haven't seen the handling of an error in the view without promises being returned from actions (this is against the Flux model.)

The errors here seem to be logged, but not displayed to the user:
https://github.com/airbnb/airpal/blob/master/src/main/resources/assets/javascripts/actions/QueryActions.js#L17

from alt.

goatslacker avatar goatslacker commented on June 28, 2024

Put it in state?

from alt.

hekar avatar hekar commented on June 28, 2024

@goatslacker Realised that today. Errors are state and should be a part of stores. Thanks

from alt.

afilp avatar afilp commented on June 28, 2024

Hi, I am interested in a good example for Login/Register/Authenticated pages, etc. Plus expiry of authentication based on token, etc. Is there anything like that anywhere? Thanks.

from alt.

hyperking avatar hyperking commented on June 28, 2024

@goatslacker I need help using preact js inside a standalone website without using a precompiler.

example: could be a basic hello world button that opens an alert when clicked.

load preact from a cdn and code the preact app or component to Add onto an html page.

thanks in advance for anyone responding to this message.

from alt.

Related Issues (20)

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.