HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
An AppML model describes an application
An AppML model is a JavaScript object (JSON) describing an application.
This small model describes a full application for retrieving data from a database:
{
"database" : {
"connection" : "localmysql",
"sql" : "SELECT * FROM Customers"}
}
With an AppML model you can:
To allow users to filter data (search ,sort), you can add filter information to the model:
"filteritems" : [
{"item" : "CustomerName", "label" : "Customer"},
{"item" : "City"},
{"item" : "Country"}
]
To allow users to update data, you can add update information to the model:
"updateItems" : [
{"item" : "CustomerName"},
{"item" : "Address"},
{"item" : "PostalCode"},
{"item" : "City"},
{"item" : "Country"}
]
The applications you have seen earlier in this tutorial, did not use any models.
In later chapters, we will connect to databases, read, filter, and update data, as specified in a model.