Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

newbie: writing backend code for website

Tags:

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

like image 302
frazman Avatar asked Jan 07 '12 22:01

frazman


2 Answers

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.

like image 183
jitendra Avatar answered Oct 13 '22 18:10

jitendra


The first thing to do is to develop an API for your library. From there you can develop multiple frontends that use the same API in order to present it multiple ways.

like image 39
Ignacio Vazquez-Abrams Avatar answered Oct 13 '22 16:10

Ignacio Vazquez-Abrams