dternyak/React-Redux-Flask

Why is there an express server in static?

ZeroEcks opened this issue · 4 comments

I am pretty new to javascript but am I wrong that server.js is an express server?

Why is it there when you have a flask server?

There are indeed 2 separate servers here -

The flask server is the backend. It handles interaction with the database and everything else that goes on in server-land.

The front-end server handles watching your front-end code for file changes and transpiling and proxying requests from localhost:3000 (the port the front-end server is running on) to localhost:8080 (the back-end flask server) among other things.

Hope that answers your question.

Assuming you compile all the javascript, could it run fine with just the flask server?

Yes exactly.

On Monday, August 29, 2016, Declan Kelly notifications@github.com wrote:

Assuming you compile all the javascript, could it run fine with just the
flask server?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHf02eWUMhRnIvYuGgKW0mFLHpAuuG74ks5qkmeFgaJpZM4JvIvX
.

Thanks for the explanation.