-
Notifications
You must be signed in to change notification settings - Fork 0
/
2.html
106 lines (94 loc) · 4.03 KB
/
2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Advanced Web Dev</title>
<meta name="author" content="Eric Moynihan" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="reveal/css/reset.css" />
<link rel="stylesheet" href="reveal/css/reveal.css" />
<link rel="stylesheet" href="reveal/css/theme/black.css" id="theme" />
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="reveal/lib/css/monokai.css" />
<!-- Printing and PDF exports -->
<script>
var link = document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = window.location.search.match(/print-pdf/gi)
? "reveal/css/print/pdf.css"
: "reveal/css/print/paper.css";
document.getElementsByTagName("head")[0].appendChild(link);
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<img src="https://cdn-assets-cloud.frontify.com/local/frontify/h_lNxVXLqrDqb2kyrixW3lMmUl7n-aBRzJUzyvzD7_9FpVMt61zcnJ81BDOqdkOndY8i0eAwn6Wh0ML1aAgbhjOhufnBG8Tz7OVGBhGqrknPlL9fOTjbQj2eRqycd0zF?width=2400" style="border: 0; background: transparent; width: 35%;" />
<h1>Advanced Web Development</h1>
<p><b>Week 2</b>: Express.js</p>
<p>By <a href="https://github.com/ericm">Eric Moynihan</a></p>
</section>
<section style="text-align: left;">
<h1>MVC</h1>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/MVC-basic.svg/1200px-MVC-basic.svg.png" alt="a">
</section>
<section>
<p>MVC stands for Model View Controller. It's the <b>Design Pattern</b> used by many website backends and it's the one we will go through today.</p>
</section>
<section>
<h1>Routing</h1>
<p>In <b>MVC</b>, the controllers are responsible for routing the request to respond with the correct data from the models and views</p>
</section>
<section>
<h1>Views</h1>
<p>The views are used to show our backend how to output our data. There's many ways to make views but some popular technologies are <b>pug</b> and <b>ejs</b>. You can just write you views in a HTML file however and get your controller to process it.</p>
</section>
<section>
<h1>Models</h1>
<p>Models are essentially how we represent the data we store. They are mainly used to represent the structure of our database</p>
</section>
</div>
</div>
<script src="reveal/js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
center: true,
hash: true,
transition: "slide", // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{
src: "reveal/plugin/markdown/marked.js",
condition: function() {
return !!document.querySelector("[data-markdown]");
}
},
{
src: "reveal/plugin/markdown/markdown.js",
condition: function() {
return !!document.querySelector("[data-markdown]");
}
},
{ src: "reveal/plugin/highlight/highlight.js", async: true },
{ src: "reveal/plugin/search/search.js", async: true },
{ src: "reveal/plugin/zoom-js/zoom.js", async: true },
{ src: "reveal/plugin/notes/notes.js", async: true }
]
});
</script>
</body>
</html>