newbie: writing backend code for website

frazman picture frazman · Jan 7, 2012 · Viewed 49.4k times · Source

I am usually working in fields of machine learning and hence my background is mostly in stats/ML and no formal web background. Usually for my project, I work on python which is connected to my local mysql db... to fetch data adn everything. Now, my work is mostly complete.. everything is console based.. (like traditional programs). How do I integrate it on the front end. I understand that this is more like a server side scripting. So, lets take an example of google. In the front end.. someone enters a search query.. and in the backend lets say there is a program in C++ which executes that query. How did this interaction takes place.. if front end is written in lets say php.. I assume shell execution of program is a bad bad way to run programs.. ?? Any suggestion will be greatly appreciated. Thanks

Answer

jitendra picture jitendra · Jan 8, 2012

As suggested by Ignacio, you will first need to design API for your project. This is basically clearly laying out what (and how) queries will be supported for your project.

You don't need shell execution and neither need to learn PHP. Since your project is in Python, you can use Python Web-frameworks like Django, Web2Py.