Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

AppML Architecture

Architecture


MVC Architecture

 

The MVC architecture is adopted.

MVC stands for Model View Controller, an abbreviation for Model-View-Controller, a software design paradigm.

Model Describes your application.

View Displays your data.

Controller Controls your application.

 

Wikipedia: Model, View, Controller

 

        MVC

Model - simply a plain XML file

The model describes your application and can be reused across different hardware and software platforms (PC, iPhone, Tablets, etc.). It does not care about the user interface (UI) or presentation.

The model is written in XML and stored on a web server.

 

    Northwind

    SELECT CustomerName,ContactName,City,Country FROM Customers

 

  CustomerName

  City

  Country

  CustomerName

  City

  Country

The example above defines a data source from the Northwind database.

The model allows data to be fetched using predefined SQL. It also allows querying and sorting data by Customer, City, and Country.


View - simply an ordinary HTML file

The view is the UI (User Interface). It is typically an HTML page that displays and optionally inputs data:

My First Web Application



The HTML page above uses a scripting language to create an AppML object and displays the data in a div with id="Place01".

The "appml.js" script file is used.


Controller - simply a browser and server-side script

The server-side script controls the application in the following ways:

The browser script controls the application in the following ways:


Typical web files and folders:

|

Folders

| |


Web folder:Demo

Data folder:Data

Images folder:Images

Models folder: Models

Applications:Demo.htm

Styles:Demo.css

Configuration file:appml_config.php (or .htmlx)

Style file:appml.css

Browser controller:appml.js

Server controller:appml.php (or .htmlx)

| | --- | --- | --- |

Fast, flexible application development

Rapid Application Development (RAD) is not only a requirements elicitation method but also an integrated software development approach. The goal of RAD is to quickly deliver system solutions, where technical elegance is secondary to release speed.

Provides ultra-fast prototyping, at a speed 100 times faster than traditional software development methods.

An application prototype can run directly from the application model without any coding.

Wikipedia: Rapid Application Development

Agile software development is a method that evolves step by step based on collaboration between users and developers.

An application can be built incrementally, step by step, from prototype to a complete application.

Wikipedia: Agile Software Development


Declarative Programming

Software development often fails to meet expected schedules and budgets. Coding errors also occur frequently. This is because computer code is hard to develop, test, and maintain.

Coding is alreadyoutdated. You should describe more about what to do, rather than how to do it.

Use You need toDeclarationdescribe your application in the model.

Use You canwrite little or no code.

Wikipedia: Declarative Programming


Code First

Web application development can use the following two different approaches:

  1. Code First: use pre-programmed, pre-tested code, adding only new application specifications.

  2. Contract First: write the application from scratch using complete application specification requirements.

Adopt the most reasonable concept: Code First.


Service-Oriented Architecture (SOA)

Web Service is a data interface specified by a URL, like a web page. But unlike a web page, it is only a way to convey information.

A typical Web Service provides data to the page.

Use , HTML is displayed as the user interface, provides data.

Original Web Services The design uses XML standards such as SOAP, WSDL, and UDDI.

Modern Web Services For example, makes applications simpler.

Service-Oriented Architecture (SOA) is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between these services. The interfaces are defined in a neutral manner and should be independent of the hardware platform, operating system, and programming language that implement the services. This allows services built in such diverse systems to interact in a unified and common way.


Advantages of Web Services

For example, a web service can be designed as a small program that provides other applications with the latest stock trading prices.

Web services use the HTTP protocol to communicate with other systems, and web services are independent of operating systems and programming languages.

An application that calls web services will always use the HTTP protocol to send requests. The calling application will never care about the operating system or programming language running on the other computers.

Web services can create new possibilities for more enterprises because they provide a simple way to distribute large amounts of information.

For example: flight schedules and ticket reservation systems.


Cloud Computing

Cloud Computing is an extension of SOA: Application-as-a-Service, Storage-as-a-Service, and Data-as-a-Service.

For most people, cloud computing is storing data on the web:

The reasons are obvious:

Databases and applications can be easily placed in the cloud.