So I have a working version of this, which is (very) rough around the edges - but it accomplished my goals for now. I have to say this was my first attempt at making
Heres what I have:
Simple Login Application
Client:
Framework: PureMVC JS version
FrontEnd: HTML5 with Jquery-LoadTemplate Plugin
Communication: JSON via Websocket
Server:
Framework: PureMVC Java version
Backend: Java Application Server (Glassfish4 running Tyrus)
Communication: JSON via Websocket
Framework Implementation:
Client: View and Controller
Server: Controller and Model
Basically - I have been able to accomplish:
Clear separation of the Client (VIEW) from the Server (MODEL) processing
Utilization of Common Framework with differing languages
What I need for many smarter than me....
Before I post anywhere - I want some feedback regarding how I've set it up and whether there are better ways of handling this.
I ran into a few issues:
0. Seeing what was really happening (I added a bunch of logging on both client and server to what the framework and socket server in action)
1. Java Websocket relies of session to be able to send back to the client (I created an REMOTEENDPOINT.ASYNC proxy on each incoming message)
2. JSON notifications - It was possible to create a notification in which BODY was JSONOBJECT instead of POJO (in reality there is very little difference in how they are processed)
3. Creating Java objects which are JSON rather than worrying about converting to Java primitives.
Would anyone be willing to provide feedback and possibly some help with the challenges above by taking a look at the code?
I've attached just the index gif so you can see what I mean about the template concept as well as a gif of the application structure.