react-examples icon indicating copy to clipboard operation
react-examples copied to clipboard

Integrating with postges backend

Open rahul1346 opened this issue 10 years ago • 4 comments

for the messaging example

Thanks for creating this.

A few questions:

  1. How do you handle replies to a message and the message thread in general? 1a) If there is only one model/controller for messages, do you just create a update method for that thread?

  2. If trying to integrate with flux, would you create stores, actions, constants, dispatcher for messaging so that upon change to thread and event is emitted to the backend ever time?

rahul1346 avatar Jul 18 '15 18:07 rahul1346

Do you mean the mail client app example, or the Kanban example?

In the case of the Kanban example the backend is very simple so there's no real need to use Flux or any frameworks, jQuery's ajax is more than enough.

eudoxia0 avatar Jul 22 '15 19:07 eudoxia0

Referring to the mail client app.

rahul1346 avatar Jul 22 '15 19:07 rahul1346

The mail client app has no backend, all the data is just a JavaScript object in the client. For an email client that did work as one, we would definitely use Flux -- coincidentally I just merged a different example of using nuclear.js.

eudoxia0 avatar Jul 22 '15 19:07 eudoxia0

Thanks, nuclear looks interesting. I'm trying to implement a similar chat using react/flux and having some trouble integrating it. I'd like to talk to you about the project i'm working on and get your thoughts. Please email me at [email protected]. Look forward to hearing from you.

On Wed, Jul 22, 2015 at 3:53 PM, Fernando Borretti <[email protected]

wrote:

The mail client app has no backend, all the data is just a JavaScript object in the client. For an email client that did work as one, we would definitely use Flux -- coincidentally I just merged a different example of using nuclear.js.

— Reply to this email directly or view it on GitHub https://github.com/tryolabs/react-examples/issues/6#issuecomment-123844502 .

rahul1346 avatar Jul 22 '15 20:07 rahul1346