Ana Py
Ana Py
Sep 9, 2018 · 1 min read

Great blog, very helpful. My experience as a web developer is mostly in the backend and with some experience of building apps on Flask with server side templating using some Jquery/AJAX- NO exp with React or Node. Now if I want to use React for the frontend part, I’d love to get your input on the following-

i) Is it necessary for React and Flask app to run separately on different servers and communicate via HTTP as it seems from what you have mentioned. Can they connect/communicate in any other way?

ii) For production, I am using Nginx (reverse proxy) and serving static files, Gunicorn (HTTP server) with Flask in my current app where I want to add React for frontend (removing backend templating). Should the new architecture look like this- I use Nginx as a reverse proxy, but serve the static files over an HTTP server with React and another Gunicorn server as the main backend server for serving the Flask app? But then I have 3 HTTP servers? Is there a way to eliminate the third HTTP server (React?) in some way where I can get React and Flask to interact/communicate over something else (NOT HTTP)?

    Ana Py

    Written by

    Ana Py