This is more of a general programming question and not to do so much with rev pi but here go's anyway. I have my revpi running a c++ app in the background just doing some basic control with sensors and switching outputs. I now would like to make a web page that can be viewed locally (using Apache 2) to show the values of the sensors values and be able change user settings that are in the c++ app. but i find myself very lost when i look a how to make the c++ app communicate with the web page. I don't really want to use PROCON as in the end would like to some web framework(bootstrap) to keep things looking fresh (sorry rev pi guys

When i think about how this should work. I think that the web page would call a JS function to ether create a pipe or read some memory location. but im not sure is this a the best way to do this is. Or even the correct way to do so.
would be great to know your thoughts. Thanks for you time !