Integrate Node.js with Angular 2 application

Nimish goel

I am creating an angular 2 project which will use Node.Js as backEnd and Node.Js will make calls to 3rd party external APIS(Like Gandi) which accept calls only from Python, PHP or Node.Js.

I have chosen Node.Js.

I have called few APIs from Angular 2 services using HTTP protocol. Now I do not know where to write this Node.Js code and how to Integrate this Node.Js code with Angular 2 services.

I think, Just a sample application or sample architecture which is a combination of Node.Js and Angular 2 will help a lot.

Do I need to create Restful services using Node.Js?

If Yes, Do I need to use Express.Js also for server purpose?

Note: I do not want a Mean Stack application(No Mongo DB)

crash

Actually it's pretty straightforward.

What I'd do is to simply consider the Angular 2 app on the frontend and the Node.Js API on the backend as independent projects. It's very likely that they will run on different providers (eg. Firebase for Angular 2 app and Heroku for the Node.js server) so it makes sense to handle them as 2 different projects with it's unique dependencies.

I have recently done a similar project, using Angular 2 + webpack as frontend and Django on the backend: https://github.com/damnko/angular2-django-movies

Hope this makes sense, otherwise please let me know

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

TOP Ranking

HotTag

Archive