I have some experience developing websites, but none with proper web applications.
But this time I'm creating more of a web application, my server will surely handle API calls from a mobile app (iPhone/Android/MeeGo (...or not)) or even from third party clients.
So I'm thinking, is it really necessary that the "website" --the frontend part of my application using HTML (5)/CSS (3) and JS--interacts with my backend in a different way than my other "frontends"?
Am I thinking wrong? I think this is a common problem, and I need some experimented advices on that. Thank you for your help.
-
Why is this tagged django?weberc2– weberc22013年03月15日 15:02:32 +00:00Commented Mar 15, 2013 at 15:02
-
@weberc2 Because he is "mainly using the Django framework".EpicDavi– EpicDavi2014年09月07日 19:37:14 +00:00Commented Sep 7, 2014 at 19:37
-
@EpicDavi I mainly use Linux. Doesn't mean I use that tag for every question I ask.weberc2– weberc22014年09月08日 19:22:23 +00:00Commented Sep 8, 2014 at 19:22
-
@weberc2 Linux isn't related to the question. Django is a framework that can be used to make web applications (such as the one he is trying to make here). He is familiar with Django and therefore it would be beneficial to him if his goals could be accomplished using it to save time and effort.EpicDavi– EpicDavi2014年09月08日 19:45:49 +00:00Commented Sep 8, 2014 at 19:45
-
@EpicDavi Nothing in the question nor the accepted answer pertains to Django (except where he said he uses Django). His question pertains very generally to web application architecture. It doesn't matter if he uses Django or Rails or PHP or etc. Anything that can talk HTTP would suffice. 100% irrelevant.weberc2– weberc22014年09月08日 19:51:52 +00:00Commented Sep 8, 2014 at 19:51
1 Answer 1
Actually No. You're thinking it the right way. You can Javascript to interact with your Rest API, so you can focus only on writing a scalable API, and the UI. That's the approach taken by Twitter. Their web site, is a Rails application that uses the twitter API, written mostly in Scala, and uses by the hundreds of twitter clients out there, whether mobile or desktop app.