Answer the question
In order to leave comments, you need to log in
AngularJS (frontend) + Flask (backend): set up two servers or one?
Hi!
Assumed to raise two servers:
AngularJS - frontend;
Flask - backend;
But Flask can also serve static files, which means you can keep within one server.
And yet, tell the amateur how to be more competent?
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
1) What is a frontend server? Like just static?
2) Statics should be given through nginx by regular means
3) Flask server is needed only for development. Launching it in prod is very bad. A Flask application implements the wsgi standard, so it can be run on any wsgi server (I recommend uwsgi). Moreover, it is desirable not to put it outside, but to put it "behind" nginx, i.e. you need to proxy from nginx to uwsgi.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question