Should I include a Reactjs application in the same application as my REST API?
I am new to Reactjs. I have created several standalone Node REST APIs. I am creating a React app, an Android app, and an iOS app (so the REST API must serve all three apps). I was wondering what the convention dictates when building the Node API.
There are two options, as I see it ...
1) I could create one large application that covers the REST API and React App. This app will serve all API calls from mobile apps and responsive / web apps. It will also serve all views, such as HTML, CSS, etc.
OR
2) I could create two small applications. One of them will serve as a React application with presentation templates with a separate (lighter) Node server. In the second application there would be no views. It just works as a JSON API to serve all three applications.
source share