I am working on a project similar to craiglist, where users can post announcements for everyday items like cars and flats. I have already developed a significant portion of the backend using a RESTful API in three-tier architecture with Java, connecting to the database and providing URLs that return JSON.
For example, when I call , I receive back:
{"user": {"username": "jdoe1234", "email", "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="701a141f154142434430171d11191c5e131f1d">[email protected]</a>"}}
All actions on the site are managed through these URLs, carefully designated as POST, GET, UPDATE, DELETE, etc. There is also oAuth protection for the API to prevent unauthorized queries.
While the server-side aspect is solid, I am considering whether a client framework like Angular or Ember would be beneficial for making HTTP requests, handling responses, and populating HTML views. However, I am uncertain about the best choice between AngularJS and Ember, especially considering the release of Angular v2 and concerns about maintainability.
I am cautious about using a client-side framework due to potential limitations and security risks, as the code is fully instantiated in the browser and accessible to users. Therefore, I want to ensure that any technology I use is reliable and secure, especially if the application reaches a broader audience.
In summary, with the existing webservice and API infrastructure, I am unsure whether implementing a client framework like Angular is the right decision compared to relying on traditional server-side frameworks like Symfony or Zend, given the anticipated high usage volume (similar to craiglist).