Stream Architecture and Backend

I am trying to create a simple webapp, just to learn something new, and decided to learn how to respond to js. I implemented some backend in java and spring, but I really don't know how to integrate it with flux architecure. Is this possible, or should I change my backend (I use spring mvc, and flux is a different approach)? I searched a lot, but almost every example I found is a complete js application or using rails as a backend, which I don't know at all.

+4
source share
1 answer

If you want to keep the existing end and still run React + Flux on the server for server-side rendering, I suggest you take a look at the example from Soundclound written by @zertosh:

example: https://github.com/zertosh/ssr-demo-kit

video: https://vimeo.com/108488724

In their application, they run Scala on the back panel, and they deploy a runner for a Nashorn-based script to clear the initial action through the application, create HTML code and pass it all to the client. Then the client takes over.

You will also need XHR endpoints if you want to save the data back to the server, but all the usual GET / POST URLs for JSON files.

, , React. , , JSON , , .

+1

All Articles