Click here to Skip to main content
15,843,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There may be a better way to do this, please let me know if there is.

We have an API served by a Flask web server; this can't be changed.
We have web client - SPA using react providing dynamic content served by the API.
We want to deploy this all via Elastic Beanstalk in AWS.

What I really want to do is use the flask server to serve the client pages - html/js/css/etc.

I'm going round in circles trying to find examples or ideas.

So, any ideas how to do this or half-sane terms to search for; my google foo is weak on this.

What I have tried:

I tried copying the client into the static part of the flask app.
I can run two web servers - Flask for the api, node.js for the client - but I want them together.
Gerry Schmitz 4-Jun-19 14:33pm    
How can there be a "better way" when you've already selected components "that cannot be changed" but do not work together?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900