As someone who primarily focuses on native mobile development, I may not be well-versed in web development concepts, so please excuse my lack of experience.
In the realm of mobile app APIs, data is typically requested through POST or GET methods and returned as JSON. Imagine a scenario where a simple API built with Sinatra/Ruby serves both the mobile app and website.
What are some options for developing a website that interacts with this API endpoint, pulling data from the same JSON source as the mobile app?
I've heard AngularJS and Backbone.js mentioned, but would using just Sinatra suffice? I'd rather avoid PHP if possible.
I'm looking for a lightweight solution that can update pages when the data model changes, although I understand this might rely on backend API modifications.