-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
295 lines (286 loc) · 9.67 KB
/
index.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>reveal.js</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/reveal.css" />
<link rel="stylesheet" href="css/theme/black.css" />
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css" />
<style>
.caption {
font-size: 10px;
}
</style>
<!-- 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)
? "css/print/pdf.css"
: "css/print/paper.css";
document.getElementsByTagName("head")[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section class="stack">
<section><h1>What's NUXT?</h1></section>
<section><h1>Getting started with Server Side Rendering</h1></section>
<section>
<h1>A quick start guide for deploying a SSR app</h1>
</section>
<section>
<h1>From 0 to GO in 15 minutes:</h1>
<h2>A Nuxt Love Story</h2>
</section>
</section>
<section>
<h1>Oh hi 👋</h1>
<h2>I'm Hunter</h2>
</section>
<section>
<h1>The game plan</h1>
<ol>
<li>What the snap is SSR?</li>
<li class="fragment">K fine, what's Nuxt?</li>
<li class="fragment">
The SSR `Zeit` geist
<p class="caption">(#lol)</p>
</li>
<li class="fragment">Let's do some stuff</li>
<li class="fragment">✨</li>
<li class="fragment">Bonus round? 🙏</li>
<li class="fragment">K, bye</li>
</ol>
</section>
<section>
<section>
<h1>SSR - What it be</h1>
<p class="caption">
Sounds
<q>awfully</q>
close to USSR . . .Coincidence? 🤔
</p>
<br />
<p>SSR stand for `Server Side Rendering`</p>
<p>
Performs all of the initial render logic for a page visit on the
server, serving the already `rendered` page to the browser on load
</p>
</section>
<section>
<img src="images/csr.png"/>
</section>
<section>
<img src="images/ssr.png" />
</section>
<section>
<h1>Y tho?</h1>
<ul>
<li class="fragment">SEO!</li>
<li class="fragment"><q>Perceived</q> performance improvement</li>
<li class="fragment">Perfect for Static sites</li>
<li class="fragment">
You can tell your friends that you're cool 😎
</li>
</ul>
</section>
<section>
<h1>Pitfalls</h1>
<p class="caption">
//TODO -- insert image of oldschool Atari game
</p>
<ul>
<li class="fragment">A longer TTFB (Time to first byte)</li>
<li class="fragment">
You can't serve an app from s3 or any other file bucket
</li>
<li class="fragment">Common patterns may not work 😱</li>
</ul>
</section>
</section>
<section>
<section>
<h3>Let's get our Nuxts in a row</h1>
<img src="images/nuxt.png" />
<br/>
<q
>Nuxt is a framework designed to give you a strong architecture
following official Vue guidelines. Incrementally adoptable, it can
be used to create from static landing pages to complex enterprise
ready web applications.</q
>
</section>
<section>
<h1>Y Nuxt tho?</h1>
<p>
Nuxt is a direct comparison to Next - why would I choose Nuxt?
</p>
<ul>
<li class="fragment">I love Vue!</li>
<li class="fragment">I like to keep it spicy 🌶</li>
<li class="fragment">CLI tools 🛠</li>
<li class="fragment">Documentation</li>
</ul>
</section>
</section>
<section>
<section>
<h3><q>"All Zeit, All Zeit, All Zeit"</q> - Matthew McConaughey</h3>
<img src="images/zeit.jpeg" />
<br />
<p>
<q
>ZEIT Now is the optimal workflow for frontend teams.
All-in-one: Static and JAMstack deployment, Serverless
Functions, and Global CDN.</q
>
</p>
</section>
<section>
<p>
Basically Zeit is a FED's best buddy that allows for ezpz (🍋)
deployment of sites of all shapes. It can handle static sites,
client rendered SPAs, and SSR apps among other things. The best
part is that it's <q>ridiculously</q> simple
</p>
<p class="caption">I am open to sponsors, just sayin' >_></p>
</section>
</section>
<section>
<section data-background-image="images/live.gif"></section>
<section>
<h1>But first . . .</h1>
<ul>
<li>Install NPM</li>
<li>Sign up for a zeit account!</li>
</ul>
</section>
<section>
<h1>K fine, I guess it's live demo time</h1>
<p class="caption">Don't try this at home, folks</p>
<p class="caption">But I mean, actually do. . .</p>
</section>
</section>
<section>
<h1>Interlude</h1>
<q
>The most popular mode for Nuxt. With SSR, also called "universal"
or "isomorphic" mode, a Node.js server will be used to deliver HTML
based on your Vue components to the client instead of the pure
javascript. Using SSR will lead to a large SEO boost, better UX and
more opportunities (compared to a traditional Vue SPA).</q
>
<br />
<br />
<q>
Because implementing SSR on your own can be really tedious, Nuxt.js
gives you full support out of the box and will take care of common
pitfalls.</q
>
</section>
<section>
<h1>Recap</h1>
<ul>
<li class="fragment">
Using Nuxt cli we can quickly and easily spin up a new Server Side Rendered Vue app
</li>
<li class="fragment">
Using Zeit we are able to simply deploy an SSR app
</li>
<li class="fragment">
Updating your live app is as simple as pushing a target branch
upstream
</li>
<li class="fragment">
<p class="caption">
I guess I should ask if anyone has questions. . . .bueller?
</p>
</li>
</ul>
</section>
<section>
<section data-background-image="images/bonux.gif">
<h1>BONUS TIME</h1>
</section>
<section>
<h1>
Let's make a server (lol, y not)
</h1>
<p>
We're going to spin up a _super_ simple express server and deploy
it heroku
</p>
<p>Then we're going to hook our nuxt app up to our new server</p>
<p class="caption">ez rite? 🙃</p>
</section>
<section>
<h1>
Pre-reqs
</h1>
<ul>
<li>A heroku account</li>
<li>Setting up the heroku cli</li>
<li>npm installed</li>
</ul>
</section>
<section data-background-image="images/demo2.gif">
<h1>DEMO TIME . . . AGAIN</h1>
</section>
</section>
<section>
<h1>Recap Redux</h1>
<ul>
<li class="fragment">We spun up an express server</li>
<li class="fragment">Updated routing</li>
<li class="fragment">Deployed to heroku using CLI</li>
<li class="fragment">Updated our app to use our new remote!</li>
</ul>
</section>
<section>
<h1>Recap: The final Recappening</h1>
<ul>
<li class="fragment">
It's actually <q>really</q> easy to get a fullstack app spun up
and deployed
</li>
<li class="fragment">These tools are mature and ✨magic✨</li>
<li class="fragment">
You should probably make your own super neat app!
</li>
</ul>
</section>
<section>
<img src="images/clap.gif" />
</section>
<section>
<h1>...</h1>
<img src="images/questions.gif" />
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
hash: true,
dependencies: [
{ src: "plugin/markdown/marked.js" },
{ src: "plugin/markdown/markdown.js" },
{ src: "plugin/highlight/highlight.js" },
{ src: "plugin/notes/notes.js", async: true }
]
});
</script>
</body>
</html>