Krishna Nigalye
Krishna Nigalye

Reputation: 1076

Application structure for Node project

I have two separate applications calling more or less same API functions. One application is built using Angular and the other application using React + Flux. Both the applications have to interact with the same database.

My angular application adds new data to the database and my react app uses that data to do some other stuff. I want to know if I can build the structure shown in the image below.

So, my applications should communicate with the same server hosting API functions and should share a common database. Using this, I can avoid duplicating same server side logic on two different projects.

Application structure to implement

Upvotes: 2

Views: 97

Answers (1)

Ohmen
Ohmen

Reputation: 6604

Sure it is possible.

The open question is how the React App gets notified if the angular app changes something. Possible technologies for this are sockets or polling.

Another possibillity is to let the Angular App directly ping the React App.

Upvotes: 3

Related Questions