I need to develop an application which runs on the web as well as on mobile platform. I want to make something like a directory where i hold my common functions in respect to web and mobile platform. This is the diagram which describes what i exactly want:
I just want to know how do i implement this thing? If you can help me with the technical details that would be great! P.S: I am new to web app and stuff!