Isomorphic React + Flux + REST API

So, I have been messing around with some kind of isomorphic React + Flux lately and found some concepts quite confusing to be honest. I have studied best practices on how to structure isomorphic applications and are looking for tips.

Suppose you create a webapp as well as a mobile application supported by the same REST API. Do you bundle your REST API with webapp? I saw people advocating bundling and having a separate code base for the REST API.

Any tips or recommended readings are welcome!

+4
source share
4 answers

. , SPA , REST API.

SPA (in browser) <====> Backend REST API

, , , SPA .

, :

SPA (in browser) <====> Backend REST API
SPA (on server)  <====> Backend REST API

, :

SPA (in browser) <====> Backend REST API
SPA (on server)  <====> Backend REST API
Mobile app       <====> Backend REST API

, - https://github.com/WebbyLab/itsquiz-wall. .

, .

+1

, .

, , Javascript , .

, RESTful, :

" . , , , , , . , . , ."

, :

  • , ( UX)
  • SEO
  • / (, React)

, React , URL. REST API, .

, , .

0

REST API , API, .

, API- . , .

It is called Isomorphine, and you can find it here: https://github.com/d-oliveros/isomorphine .

Disclaimer: I am the author of this library.

0
source

Source: https://habr.com/ru/post/1589285/


All Articles