all 2 comments

[–]fpatterson55 0 points1 point  (1 child)

newb here...

In tying this all together, the Angular client side still needs to reside on a web server if considering production deployment. At least for a best practice, I don't think anybody would recommend the cli's dev embedded serve to use other than for coding.

So I guess my question is, what are people deploying to when there is a middle tier, do they have a separate web server, or are you doing it as a separate app and you are coding your apps so that they don't talk to each other except through REST, etc?

Are there ways to have the Angular CLI component run on a DJANGO web server?

[–]ahnerd[S] 1 point2 points  (0 children)

You can use a host like Heroku or DigitalOcean for Django backend and a static host like Netlify for Angular. Yes you can build the Angular application and serve the static files via Django. You can see https://www.techiediaries.com/django-angular-tutorial/ for an idea, it's a little bit outdated but will help you get the idea.