MVC APP BUILDING OVERVIEW
This guide is aimed at developers new to building using MVC techniques or MVC in the context of mydigitalstructure.com.
MVC is an application architecture pattern that fits within the Separation of Concerns (SoC) philosophy and is made up of 3 layers:
The data structures and data - typically inside a database or in this case "inside" the mydigitalstructure.com service.
The interface that the user sees and interacts with.
This the layer that responds to the user actions and sends the "control" messages to the model, in this case the mydigitalstructure.com REST based API.
Each layer is independent of the other and the processes supporting each layer can be distributed eg some on a server and others on the client device.
As a developer using the mydigitalstructure.com REST API and associated pre-cooked Model, you are highly focused on the View and Controller layers. Particularly the View layer as this is a direct response to the users needs, where the Controller coding is a bi-product of these needs.
SOME TYPICAL OPTIONS FOR BUILDING THE VIEW & CONTROLLER LAYERS
BUILDING THE VIEW & CONTROLLER LAYERS USING A WEB-BROWSER AS THE CLIENT
jQuery radically simplifies the application building process.
The jQueryUI library is used to help build the buttons and other visual elements.
The typical pattern is:
||Create the visual user elements using HTML
var aHTML = ;
aHTML.push(' [html] ');
||Associate the user interactions/events to the elements
This can be done using the jQuery .click() type functions or the jQueryUI .button() type functions.
||Interaction with the model
This is the getting of data and the setting of data into the Model, which in this case uses the jQuery .ajax() function to interact with the mydigitalstructure.com REST API.
var sURL = '/ondemand/project/' +
'&id=' + giObjectContext;
Check out the options for building with the mydigitalstructure.com REST webapi.
A video by Rob on essential development tools & other videos