title: C++ on the back end of web app
body: <p>I have been searching the web for this information and I think I need some help with understanding this better. </p>
  
  <p>I would like to learn how to write back-end of a web application in <strong>C++</strong> and essentially how to output C++ to web pages and make it talk to a <strong>MySQL database</strong>. For the record I can write decent code in C++ but I never did it for web.</p>
  
  <p>Wherever I go on the web and find people asking about this the first list of responses is WHY would you when yo have scripting languages. I am aware of the scripting languages, I have used them for years but I am running across cases where this is a requirement and I would like to learn more about it. </p>
  
  <p>My intent it to write an app that uses <strong>Angularjs on the front and C++ on the back</strong>. I am a fairly well versed PHP developer and I might take this task on by writing PHP initially but I do need to account for a possibility of rewriting in C++ and this makes me think I should probably write it in C++ from the get go.</p>
  
  <p>I understand that the most usual question is WHY I would use C++ instead of a scripting language so I will try and give a limited set of reasons. Please do understand I am not a pro in this aspect of C++ yet and I am evaluating the situation I am in.</p>
  
  <p>So here are some of my reasons...</p>
  
  <ol>
  <li><p>The project I am about to take on is bound to be very resource intensive and I would really like to gain all the speed I can possibly get from the get go. The more control I have over the app process the better. Essentially I need precision, I know and love C++ and it allows me to retain the control to a great degree..</p></li>
  <li><p>The group of people I am talking to in the context of the project are aware of the advantages of C++ fro the resources and speed perspective and they hold a portion of the investment bag which gives them a vote in how the project will be approached. Time IS on my side, but i want to waste as little of it as possible.</p></li>
  <li><p>I am comfortable with C++, have a C++ oriented mind and would love to use it in this context as much as possible.</p></li>
  </ol>
  
  <p>So I guess my questions are...</p>
  
  <ol>
  <li>Is there a good tutorial that can take me from the basics to
  something intermediate?</li>
  <li>How do I write a web site backend in C++?</li>
  <li>How do I write C++ to work with MySQL on Linux.</li>
  <li>Is there a way to do this on Linux servers?
  (I believe Facebook it doing it).</li>
  </ol>
  
  <p>I found this <a href="http://www.compileonline.com/compile_cpp_online.php" rel="noreferrer">http://www.compileonline.com/compile_cpp_online.php</a> on <a href="http://www.compileonline.com" rel="noreferrer">http://www.compileonline.com</a> and it is giving me hope but I need more information to know how to get there.</p>
  
  <p>I am aware that I am not asking an example code based question but I often find good reference posts on Stack that answer these types of questions so I hope someone can help me. I feel a bit lost here.</p>