I have a simple Node JS app that serves an API. I can node main.js to get the server running and call localhost:3000/api/names to successfully get a list of names. I want to build on this with Reagent/Cljs.
I can get a Reagent app up an running on localhost:3030. My problem is, how do I make API calls to the Node app from the Reagent app? Or is my architecture all wrong? Should I combine the two apps, and if so, how?
I have tried combining them, but Reagent wants to run on Ring, while the Node app wants to run on the node server. So I still have no communication between the two. I've tried going through the Quick Start guide, but this isn't quite same situation. I've also given this approach a go to no avail. What is the easiest way to put these pieces together so that I can bring the API response data from the Node app to the Reagent app? Or is there a way to call make the API calls from within the Reagent app that I'm missing?