-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
332 lines (332 loc) · 11.1 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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!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>Meteor Overview</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/white.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.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 ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<style>
.reveal a {
color: #dc3935;
}
.reveal a:hover {
color: #e04e4b;
}
.reveal .controls .navigate-right, .reveal .controls .navigate-right.enabled {
border-left-color: #e04e4b;
}
.reveal .controls .navigate-right, .reveal .controls .navigate-right.enabled:hover {
border-left-color: #dc3935;
}
.reveal .controls .navigate-left, .reveal .controls .navigate-left.enabled {
border-right-color: #e04e4b;
}
.reveal .controls .navigate-left, .reveal .controls .navigate-left.enabled:hover {
border-right-color: #dc3935;
}
.reveal .controls .navigate-up, .reveal .controls .navigate-up.enabled {
border-bottom-color: #e04e4b;
}
.reveal .controls .navigate-up, .reveal .controls .navigate-up.enabled:hover {
border-bottom-color: #dc3935;
}
.reveal .controls .navigate-down, .reveal .controls .navigate-down.enabled {
border-top-color: #e04e4b;
}
.reveal .controls .navigate-down, .reveal .controls .navigate-down.enabled:hover {
border-top-color: #dc3935;
}
.reveal .progress span {
background-color: #dc3935;
}
.reveal section .meteor-logo {
display: inline-block;
background-color: #e04e4b;
width: 0.66em;
height: 0.66em;
margin: 0px;
border: none;
}
@keyframes color-change {
0% { color: lightyellow; }
33% { color: orangered; }
66% { color: yellowgreen; }
100% { color: royalblue; }
}
.its-magic {
animation: color-change 0.3s infinite;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>
<img class="meteor-logo" src="images/icon-white.svg" alt="Logo"> Meteor 1.3 overview
</h1>
<p>
<small>Created by Alexandr Kuldin</small>
</p>
<p>
<small>
<a href="https://rawgit.com/aaasko/meteor-overview/master/index.html">https://rawgit.com/aaasko/meteor-overview/master/index.html</a>
</small>
</p>
</section>
<section>
<section>
<h1>What exactly is Meteor?</h1>
<p>ˈmētēər / ˈmitiər / ˈmiːtjə</p>
</section>
<section>
<h2>The JavaScript App Platform</h2>
</section>
<section>
<h2>Meteor is an open source platform for web, mobile, and desktop</h2>
</section>
<section>
<h2>Is it like MEAN?</h2>
<p>MongoDB, Express, Angular, Node</p>
</section>
<section>
<h1>But why?</h1>
</section>
<section>
<h1>Why it's so cool?</h1>
</section>
<section>
<h1>$11,200,000!</h1>
<p>Y Combinator</p>
</section>
<section>
<h1>Community</h1>
<table>
<thead>
<tr>
<td>GitHub repo</td>
<td>Stars</td>
<td>Contributors</td>
</tr>
</thead>
<tbody>
<tr>
<td>angular/angular.js</td>
<td>49,702</td>
<td>1,476</td>
</tr>
<tr>
<td>facebook/react</td>
<td>43,105</td>
<td>7,354</td>
</tr>
<tr>
<td>meteor/meteor</td>
<td>34,136</td>
<td>289</td>
</tr>
<tr>
<td>expressjs/express</td>
<td>25,553</td>
<td>189</td>
</tr>
<tr>
<td>nodejs/node</td>
<td>23,785</td>
<td>930</td>
</tr>
<tr>
<td>angular/angular</td>
<td>12,526</td>
<td>278</td>
</tr>
</tbody>
</table>
</section>
<section>
<h1>10,841 packages</h1>
<p>at <a href="https://atmospherejs.com">atmospherejs.com</a></p>
</section>
</section>
<section>
<section>
<h1>Installation</h1>
</section>
<section>
<h1>OSX and Linux</h1>
<pre><code class="bash">curl https://install.meteor.com/ | sh</code></pre>
</section>
<section>
<h1>Windows</h1>
<p>There is installer of it — no exceptions.</p>
</section>
</section>
<section>
<section>
<h1>Creating an app</h1>
<pre><code class="bash">meteor create counter</code></pre>
</section>
</section>
<section>
<section>
<h1>Running an app</h1>
<pre><code class="bash">meteor</code></pre>
</section>
</section>
<section>
<section>
<h1>Extending an app</h1>
<pre><code class="bash">meteor add twbs:bootstrap</code></pre>
<pre><code class="bash">meteor list</code></pre>
</section>
</section>
<section>
<section>
<h1>Explanation</h1>
<ul>
<li><a href="http://stackoverflow.com/questions/36105068/using-es6-import-with-css-html-files-in-meteor-project-bug-or-feature">Importing of HTML</a>?! ***?!</li>
<li><a href="https://docs.meteor.com/api/reactive-var.html">ReactiveVar</a></li>
</ul>
</section>
<section>
<h1>Reactive variables and functions...</h1>
<h2>How do they work?</h2>
</section>
<section>
<h1 class="its-magic">It's magic</h1>
<img src="images/spongebob-magic.jpg">
</section>
<section>
<h1>Meteor Tracker</h1>
<p>API is <a href="https://docs.meteor.com/api/tracker.html">here</a></p>
<p>Cool tutorial is <a href="https://github.com/meteor/docs/blob/version-NEXT/long-form/tracker-manual.md">here</a></p>
</section>
</section>
<section>
<section>
<h1>Simple TODO app</h1>
<pre><code code="bash">git clone https://github.com/meteor/simple-todos.git</code></pre>
<ul>
<li><a href="http://guide.meteor.com/collections.html">MongoDB</a></li>
<li>MiniMongo</li>
<li>e.t.c.</li>
</ul>
</section>
<section>
<ul>
<li>db.products.<a href="https://docs.mongodb.com/manual/reference/method/db.collection.insert/">insert</a>( { item: "card", qty: 15 } )</li>
<li>db.products.insert( { _id: 10, item: "box", qty: 20 } )</li>
<li>db.products.<a href="https://docs.mongodb.com/manual/reference/method/db.collection.findOne/">findOne</a>( { _id: "apples" } )</li>
<li>db.products.<a href="https://docs.mongodb.com/manual/reference/method/db.collection.find/">find</a>( { qty: { $gt: 4 } } )</li>
<li>db.products.<a href="https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/">updateOne</a>({ _id: "apples" }, { $inc: { qty: 1 } })</li>
</ul>
</section>
</section>
<section>
<section>
<h1>Other Topics</h1>
</section>
<section>
<h1>Routing</h1>
<ul>
<li><a href="https://github.com/iron-meteor/iron-router">Iron.Router</a></li>
<li><a href="https://github.com/kadirahq/flow-router">FlowRouter</a></li>
</ul>
</section>
<section>
<h1>Debugging</h1>
<p>The same as debugging Node.js. And more.</p>
</section>
<section>
<h1>Testing</h1>
<p><a href="https://mochajs.org/">Mocha</a> JavaScript test framework</p>
<pre><code class="bash">meteor add practicalmeteor:mocha</code></pre>
<pre><code class="bash">meteor test --driver-package practicalmeteor:mocha</code></pre>
</section>
<section>
<h1>Deploying</h1>
<ul>
<li>Official approach</li>
<li>The default way, <a href="https://www.digitalocean.com/pricing/">DigitalOcean.com</a></li>
<li><a href="https://github.com/onmodulus/demeteorizer">demeteorizer</a></li>
<li><a href="https://allandequeiroz.com/2015/09/27/amazon-auto-scaling-and-meteor/">Amazon EC2</a></li>
</ul>
</section>
<section>
<h1>View Layers</h1>
<p>Official:</p>
<ul>
<li><a href="https://www.meteor.com/tutorials/blaze/creating-an-app">Blaze</a></li>
<li><a href="https://www.meteor.com/tutorials/angular/creating-an-app">Angular</a></li>
<li><a href="https://www.meteor.com/tutorials/react/creating-an-app">React</a></li>
</ul>
<p>Angular-Meteor has <a href="http://www.angular-meteor.com/">it's own site</a>.</p>
</section>
<section>
<h1>Stylesheet languages</h1>
<ul>
<li>LESS</li>
<li>Sass</li>
<li>Stylus</li>
</ul>
</section>
<section>
<h1>PostCSS?</h1>
<p>Of course yes!</p>
</section>
<section>
<h1>CoffeeScript?</h1>
<p>Yes!</p>
</section>
<section>
<h1>TypeScript</h1>
<p>Yes!</p>
</section>
<section>
<h1>SQL?</h1>
<p>Yes!</p>
<ul>
<li>Neo4j</li>
<li>Reactive MySQL</li>
<li>Reactive PostgreSQL</li>
<li><a href="https://medium.com/@SamCorcos/meteor-any-database-7f237f2448f0#.vhifcwj2c">e.t.c.</a></li>
</ul>
</section>
</section>
<section>
<h1>Q & A</h1>
<p><a href="https://github.com/Urigo/awesome-meteor">awesome-meteor</a></p>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
history: true,
transition: 'convex',
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() {
hljs.initHighlightingOnLoad();
} }
]
});
</script>
</body>
</html>