Hello all,
Im new here, but been fairly interested in this framework.
Heres my question: Using MVC on both Client and Server - how would you approach this?
Background - I've been increasingly frustrated with designers who think they can program and vice versa. Seems the natural answer is utilizing frameworks and begin delegating out the responsibilites both from a programming descipline and application structure.
Heres my Goal - similar to this: http://www.javacodegeeks.com/2013/12/project-avatar-the-next-java-ee-feature.html?ModPagespeed=noscript
Client
has an PUREMVC JS based port on web server (maybe apache reverse proxy)
-- hosts the Client Side delivering only the static images and static HTML
-- (DIVS for content layout and empty HTML5 TEMPLATE for content)
-- reverse proxy passes client commands back to application server VIA AJAX formatted as JSON
Server
has an PUREMVC JAVA based port hosted on J2EE App server (maybe Glassfish)
-- hosts the Server application
-- No JSP's or content handlers to output html
-- App Server only accepts data requests from client via AJAX and returns formatted JSON
Trying to avoid
URL Params
REST as it's to tightly coupled to HTTP
WEB Services (wsdl or soap) as its XML is too verbose
Trying to use
JSON natively to avoid decoding and encoding issues
HTML 5 without excessive libraries
WEBSocket as server endpoint
Got the Idea when I was looking through the TODOS when comparing JS application frameworks... and began wondering how a server side app would run in parallel. Ideally adopting a framework which supports multiple platforms will eventually lead to an agnostic approach on technology.
Anybody willing to share ideas of how both the server side and client side MVC's could work together?
PROS and CONS?
Anyone willing to look at the TODOmvc JS and create a server side Java port for it using those goals above?
Thanks!