MVC 100devs Fedecha Ves
MVC 100devs Fedecha Ves
OVERVIEW
sense right now, but I'll explain it what we should
better in the next slides look is the
workflow of the
model, just spent
a few seconds
following the steps
requests
*All server-side logic
*Functions like The Middle Man
-Takes info for user
-Processes info and talks to the DB through the
model if needed
-Receives info from the DB through the model
-Speaks to View to explain presentation to the
viewer
04. MODEL
G: You mentioned the Model a few times before...
what is the model exactly, and what does it do?
5 REASONS TO USE
MVC
MVC is used by Never repeat You can save a You can have
Makes easy
the most yourself by lot of time using mistakes or
the work with a
important structured your this format. errors without
team by having
frameworks project. There's no break the
organized files
such as ruby or need to see the whole project.
and concerns.
Django. whole code.
MVC WRAP-UP
MVC is not a language nor a library or data frame, it is a way of doing
a project that consists in have our concerns organized. We have three
big blocks that communicate to make our web app, that's why this
architectural paradigm is called MVC.
M = Model (the one that communicates with DB)
V = View (the one that displays all the answers to our client/user)
C = Controller (the one that communicates with everyone and stores
all the methods)
We also have routes, to be more organized, that communicate with
our controller.
EXAMPLE this is how
MVC looks
in a github
link to the repo: repo
https://github.com/100devs/todo-mvc-auth-local
Fedecha
Twitch: /fedecha_ves
Twitter: /fedecha_ves
Github: /fedechaves
linkedin: /in/fedechavesflecha/