forked from DiscoverMeteor/DiscoverMeteor_hr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01-introduction.md.erb
114 lines (65 loc) · 8.1 KB
/
01-introduction.md.erb
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
---
title: Uvod
slug: introduction
date: 0001/01/01
number: 1
points: 1
photoUrl: http://www.flickr.com/photos/62303607@N00/7779436538/
photoAuthor: Richard
contents: Naučite što to čini Meteor posebnim.|Pročitajte više o ovoj knjizi.|Naučite kako je knjiga organizirana.
paragraphs: 35
version: 1.4
updated: 08/27/2014
---
Napravite jedan mali mentalni pokus za mene. Zamislite da otvarate isti direktorij u dva različita prozora na svom računalu.
Sada kliknite na jedan od ta dva prozora te obrišite neku datoteku. Je li datoteka nestala i iz drugog prozora?
Nema potrebe da doista učinite ove korake da bi znali da jest. Kad nešto izmijenimo lokalno na računalu, ta promjena se primijeni svugdje bez potrebe za osvježavanjem ili ponovnim otvaranjem direktorija. To se jednostavno dogodi.
Međutim, razmislimo kako bi se taj isti scenarij odvijao na webu. Na primjer, recimo da ste otvorili isto WordPress admin sučelje u dva prozora preglednika te kreirali post u jednom od njih. Za razliku od desktopa, koliko god dugo čekali, drugi prozor nikada neće reflektirati promjenu iz prvoga, ako ga ne osvježite.
Tijekom godina navikli smo na pomisao da je web stranica nešto s čime komunicirate samo u kratkim, odvojenim 'naletima'.
No Meteor je dio novog vala alata i okruženja koji izazivaju status quo čineći web reaktivnom i real-time aplikacijom.
### Što je Meteor?
Meteor je platforma koja stoji na ramenima Node.js-a za izvođenje real-time aplikacija. To je ono što sjedi između vaše baze podataka i korisničkog sučelja i brine se da su obje strane u sinkronizaciji.
Pošto je izrađen u Node.js-u, Meteor koristi JavaScript na obje strane priče, i na klijentu i na serveru. Štoviše, Meteor može dijeliti kôd između oba okruženja.
Rezultat toga je platforma koja je istovremeno jako snažna i veoma jednostavna na način da otklanja mnoge uobičajene brige i zamke razvoja web aplikacija.
### Zašto Meteor?
Zašto da onda gubite vrijeme na učenje Meteor-a umjesto neke druge tehnologije? Ostavljajući po strani razne značajke Meteor-a, vjerujemo da se svodi na jednu stvar: Meteor je lagano naučiti.
Više nego ijedna druga tehnologija, Meteor omogućava da dobijete real-time mrežnu aplikaciju u roku od nekoliko sati. I ako ste ikad prije radili front-end razvoj, sigurno ste već upoznati s JavaScript-om i nećete morati čak ni učiti novi programski jezik.
Meteor bi mogao biti idealno okruženje za Vaše potrebe, a s druge pak strane možda i ne. Ali pošto ga možete testirati već sada nakon par većeri ili preko vikenda, zažto onda ne pokušati?
### Zašto ova knjiga?
U proteklih 6. mjeseci, radili smo na [Telescope](http://telesc.pe), open-source Meteor aplikacija koja omogučava svakome da pokrene svoj portal za novosti (zamislite [Reddit](http://reddit.com) ili [Hacker news](http://news.ycombinator.com)), gdje ljudi mogu objaviti svoje linkove i glasati o njima.
We learned a ton building the app, but it wasn't always easy to find the answers to our questions. We had to piece things together from many different sources, and in many cases even invent our own solutions. So with this book, we wanted to share all those lessons, and create a simple step-by-step guide that will walk you through building a full-fledged Meteor app from scratch.
The app we're building is a slightly simplified version of Telescope, which we call Microscope. While building it, we'll address all the different elements that go into building a Meteor app, such as user accounts, Meteor collections, routing, and more.
And after you're done reading the book, if you want to go further you'll be able to easily understand the code of Telescope, since it follows the same patterns.
### Who Is This Book For?
One of our goals while writing the book was to keep things approachable and easy to understand. So you should be able to follow along even if you have no experience with Meteor, Node.js, MVC frameworks, or even server-side coding in general.
On the other hand, we do assume familiarity with basic JavaScript syntax and concepts. But if you've ever hacked together some jQuery code or played around with the browser's developer console, you should be OK.
### About the Authors
In case you're wondering who we are and why you should trust us, here is a little more background on both of us.
<%= image "tom-photo.jpg", "portrait" %>
**Tom Coleman** is one part of [Percolate Studio](http://percolatestudio.com/), a web development shop with a focus on quality and user experience. He's the co-creator of [Meteorite](https://github.com/oortcloud/meteorite) and the [Atmosphere](http://atmosphere.meteor.com) package repository, and is also one of the brains behind many other Meteor open-source projects (such as [Iron Router](https://github.com/EventedMind/iron-router)).
<%= image "sacha-photo.jpg", "portrait" %>
**Sacha Greif** has worked with startups such as [Hipmunk](http://hipmunk.com) and [RubyMotion](http://rubymotion.com) as a product and web designer. He's the creator of [Telescope](http://telesc.pe) and [Sidebar](http://sidebar.io) (which is based on Telescope), and is also the founder of [Folyo](http://folyo.me).
### Chapters & Sidebars
We wanted this book to be useful both for the novice Meteor user and the advanced programmer, so we split the chapters into two categories: regular chapters (numbered 1 through 14) and sidebars (.5 numbers).
Regular chapters will walk you through building the app, and will try to get you operational as soon as possible by explaining the most important steps without bogging you down with too much detail.
On the other hand, sidebars will go deeper into Meteor's intricacies, and will help you get a better understanding of what's really going on behind the scenes.
So if you're a beginner, feel free to skip the sidebars on your first read, and come back to them later on once you've played around with Meteor.
### Commits & Live Instances
There's nothing worse than following along in a programming book and suddenly realizing your code has gotten out of sync with the examples and that nothing works like it should anymore.
To prevent this, we've set up [a GitHub repository for Microscope](https://github.com/DiscoverMeteor/Microscope), and we'll also provide direct links to git commits every few code changes. Additionally, each commit also links to a live instance of the app at this particular commit, so you can compare it with your local copy. Here's an example of what that will look like:
<%= commit "11-2", "Display notifications in the header." %>
But note that just because we provide these commits doesn't mean you should just go from one `git checkout` to the next. You will learn much better if you take the time to manually type out your app's code!
### A Few Other Resources
If you ever want to learn more about a particular aspect of Meteor, the [official Meteor documentation](http://docs.meteor.com/) is the best place to start.
We also recommend [Stack Overflow](http://stackoverflow.com/questions/tagged/meteor) for troubleshooting and questions, and the #meteor [IRC channel](https://webchat.freenode.net/) if you need live help.
<% note do %>
### Do I Need Git?
While being familiar with Git version control is not strictly necessary to follow along with this book, we strongly recommend it.
If you want to get up to speed, we recommend Nick Farina's [Git Is Simpler Than You Think](http://nfarina.com/post/9868516270/git-is-simpler).
If you're a Git novice, we also recommend the [GitHub for Mac](http://mac.github.com/) app, which lets you clone and manage repos without using the command line.
<% end %>
### Getting in Touch
- If you'd like to get in touch with us, you can email us at [[email protected]](mailto:[email protected]).
- Additionally, if you find a typo or another mistake in the book's contents, you can let us know by [submitting a bug in this GitHub repo](https://github.com/DiscoverMeteor/book/issues).
- If you have a problem with Microscope's code, you can [submit a bug in Microscope's repository](https://github.com/DiscoverMeteor/Microscope/issues).
- Finally, for every other question you can also just leave us a comment in this app's side panel.