Hi Sam,

Yes, you deploy your app to a server. That might be a nodeJs express 
server. However, I would recommend hosting your app on an NGINX server, 
that acts as a reverse proxy for your API (nodeJs) server, and hosts the 
static files. Any other server will work too. 
You can set up your `ng serve` as a reverse proxy too, this makes it easier 
to test/build for this scenario.
The upside from using such an option is that maintenance of your system 
becomes easier, and you don't add the overhead of CORS to your app.
It also makes it easier if you want to add multiple API servers. 

Hosting it from your NodeJS server is a good option if you want to get 
started quickly, and is a bit easier to set up. the hardware demands are a 
bit higher in this case. To put it simply, you can serve fewer users with 
the same hardware. For internal apps or highly specialized apps, this is 
most of the time a non-issue (if you only have a few 100's of users, any 
hardware can usually cope)

Hope this helps you a bit!
If you have any additional questions, don't hesitate to ask.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to