Angular 4 In a Server NodeJs

14 views
Skip to first unread message

Fabien

unread,
Aug 23, 2017, 11:15:14 PM8/23/17
to Angular and AngularJS discussion
Hello,

I'm beginner in Angular and I would like to know how can I have angular in a node project ?

I have the impression I need 2 servers, one for angular and one else for node js. But Someone said me it's possible to have one server for both. Is it possible ?

Thank you, bye

Sander Elias

unread,
Aug 24, 2017, 12:29:15 AM8/24/17
to Angular and AngularJS discussion
Hi Fabien,

No, you don't need 2 servers for an angular app. You can host your app using a single server. 
But for development, I would advise to keep your server in a separate project and configure the CLI to use a proxy to your API server. You will thank me when you need to start working with this stuff in production. Deployment is a PITA otherwise.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages