2. Contents
• What is an application architecture?
• The Client Server Architecture.
• The MVC Architecture.
• Example Modelling.
• MVC in Frameworks.
• An Example.
3. Architecture
• The architecture of an application or
computing system is the structure or structures
of the system, which comprise modular
elements, the externally visible properties of
those elements, and the relationships among
them.
8. The MVC Architecture
• MVC (an architectural paradigm) is a standard and
extremely popular design pattern, based on concepts
developed back in 1979.
•Structure of your web development and your
programming is going to be built in a certain way in
this MVC format where we are going to separate our
Model, View and Controller.
•Just a way of thinking and structuring your web
applications.
9. Why so popular?
• Used by many popular frameworks
– Ruby on rails (First one to use it).
– Django (Python based web framework).
– Cake PHP.
10. Model
• Adding and retrieving items from database.
• Processing data from and to the database.
• Speaks only with the controller.
14. Controller
• Processes GET/POST/PUT requests.
• The server side logic.
• The Middle Man:
– Takes info from the user.
– Processes info and talks to the database if needed.
– Receives info from DB.
– Speaks to View to explain presentation to the
viewer.
16. Advantages of an MVC-Based Web
Application
• It makes it easier to manage complexity by dividing an
application into the model, the view, and the controller.
• It provides better support for test-driven development
(TDD).
• Helps in carrying out the development in a more secure
manner.
• It works well for Web applications that are supported by
large teams of developers and for Web designers who need a
high degree of control over the application behaviour.
17. Example
• A basic application which stores student
information and retrieves it.
18.
19. References
• What is programming MVC?
(https://www.youtube.com/watch?v=1IsL6g2i
xak )
• https://msdn.microsoft.com/en-
us/library/dd381412(v=vs.108).aspx