[AngularJS] Re: Deploying angular app and express webservices

2018-10-21 Thread Srinivas Sria
Title: 
new angular development features and improvements with error handling 
webinar by google employees

About Angular: 
Angular is a Typescript-based open-source front-end web application 
platform 
led by the Angular Team at Google and by a community of individuals and 
corporations.

What we’ll cover in this webinar... Any error you can fix after this webinar
1. Angular error handling with latest strategies
2. New tips to write clean and per-formant angular application
3. Improving the testability of the angular app
4. Add caching to APIs and Migrating to PWA
5. State Management in Angular
6. User Activity logging with Azure Application Insights
7. Integrate with any technology

Speaker: 
Ryan Russul who is a speaker and having 8 years of experience in UI 
development and worked 
as senior solution architect, practising code re-usability and enterprise 
practices 
in angular development among all teams who were responsible for angular 
development.

Join in webinar: http://ovpurl.com/c2V5oNgM




On Wednesday, October 17, 2018 at 11:35:12 PM UTC+5:30, samriv...@gmail.com 
wrote:
>
> Hello. 
>
> Although I'm not entirely new to angular, I think my question is pretty 
> basic. 
> The first time I made websites was many many years ago using php and 
> having everything hosted on an apache webserver. 
> The client requests the .php site and the server would reply with the 
> dynamically created answer (which was the whole page). 
>
> So now the idea is to not reply with the full page but rather let the 
> client request specific data and reply only with that and let the client do 
> much of the logic. 
> I have an express server, that provides webservices and I do have a a 
> simple angular app that consumes these webservices. 
>
> Right now both are running independend of each other, meaning that they 
> run on different ports (locally). I'm only testing the angular app using 
> "ng serve". 
> What is the best practice to deploy the angular app AND the express server 
> (webservices) ?
> Do I need another http server for the angular app? Like apache or nginx? 
> Or can I also somehow serve the angular app within my express app?
>
> Thanks for your time,
> Sam
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Deploying angular app and express webservices

2018-10-17 Thread Sander Elias
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.