Web Application Architecture Design - HTML / CSS / JS + REST Backend Interface

I have experience developing websites, but none of them have the right web applications.

But this time I am creating more of a web application, my server will probably handle API calls from a mobile application (iPhone / Android / MeeGo (... or not)) or even from third-party clients.

So, I think, is it really necessary that the โ€œwebsiteโ€ - the external part of my application using HTML (5) / CSS (3) and JS - interact with my backend in a different way than my other โ€œinterfacesโ€?

I think wrong? I think this is a common problem, and I need some experimental advice on this. Thank you for your help.

+4
source share
1 answer

Not really. You think about it right. You can use Javascript to interact with your Rest API, so you can only focus on writing a scalable API and user interface. This is an approach made by Twitter. Their website is a Rails application that uses the twitter API, written primarily in Scala, and uses hundreds of Twitter clients, whether itโ€™s a mobile or desktop application.

+4
source

Source: https://habr.com/ru/post/1339420/


All Articles