Meteor is a JavaScript framework that allows developers to write code once that runs on both the client-side and server-side. It produces cross-platform applications and has real-time functionality built-in using MongoDB. To get started, developers can install Meteor and create a basic "hello world" application with a few commands in the terminal. The document then provides examples of products built with Meteor and outlines next steps for learning how to build a chat application.
Get started with meteor | designveloper software agency meteor prime partner
1. Get started with Meteor
What is Meteor?
You’ve heard people talk about Meteor recently. So here are a few things you should know about Meteor. Be careful when reading this because you will fall in love
with it immediately:
Meteor is written using NodeJs. You only have to write JavaScript and it will run on both client-side and server-side.
Meteor produces cross-platform code. Write once, run anywhere, from desktop to mobile platforms.
With Meteor, your application is real-time by default. It integrates with MongoDB and uses the Distributed Data Protocol and a publish–subscribe pattern to
automatically propagate data changes to clients.
You can save a lot of time with smart packages. Packages are handled through Meteor’s package management site: AtmosphereJs
(https://atmospherejs.com/)
It’s optimized for developer happiness. Beginning developers can quickly build something impressive, while advanced developers can appreciate Meteor’s
exibility.
The community is extremely supportive.They organizes meetups, publishes free training materials, and offers help wherever possible.
Very cool, right? You can check out our products built with Meteor:
Lu min PDF
View, edit and share PDF les in the cloud: https://www.luminpdf.com/ (https://www.luminpdf.com/)
Live C rowdfu n din g
The only app for raising money during your live stream: https://www.crowdr.tv/ (https://www.crowdr.tv/)
B oon
Givepoint and more: https://dsv.boonapp.io/ (https://dsv.boonapp.io/)
M E T E O R ( H T T P S : / / B L O G . D E S I G N V E L O P E R . C O M / C A T E G O R Y / M E T E O R / )
B y L i n h Vu ( h t t p s : // b l o g . d e s i g n v e l o p e r. c o m / a u t h o r / l i n h v n / ) o n J u n e 1 1 , 2 0 1 6
2. “We aim to build a new platform for cloud applications that will become as ubiquitous as previous platforms such as Unix, HTTP, and the relational database.”
– Meteor Development Group
Nowadays, there are lots of smart tools that help us build awesome things quickly and easily. Meteor is amongst of those smart tools. So why don’t we start using
Meteor right now?
How to install Meteor?
It’s totally simple!
O S X / L I N U X
Install the latest of cial Meteor release from your terminal:
curl https://install.meteor.com/ | sh
W I N D O W S
Simply download and run the of cial Meteor installer: https://install.meteor.com/windows (https://install.meteor.com/windows)
Your rst Meteor app
To create a Meteor app, simply open your terminal and run this command:
meteor create hello-world
Then you will see a folder named hello-world and several les have just been created:
Take a look at these les:
client/main.js # a JavaScript entry point loaded on the client
client/main.html # an HTML file that defines view templates
client/main.css # a CSS file to define your app's styles
server/main.js # a JavaScript entry point loaded on the server
package.json # a control file for installing NPM packages
.meteor # internal Meteor files
.gitignore # a control file for git
Now try to run your rst Meteor app:
cd hello-world
meteor
Let’s check it out using your web browser: http://localhost:3000/ (http://localhost:3000/)
3. You can play around with the demo app. Open your favorite editor (like Atom, Sublime Text, WebStorm…) and try editing the le client/main.html, then you will see
your web page change immediately without refreshing! This is called hot code push, since Meteor uses data on the wire: the server sends data, not HTML, and the
client renders it. I can’t tell you how much I love it, because before Meteor, I only study ASP.NET MVC and Java J2EE at school. Whenever I change the code on server
side, I have to stop the app, edit, then restart it. It takes a lot of my time since my computer’s performance is quite bad. Thanks Meteor!
Conclusion
So far we’ve discovered the very basic of Meteor:
What is Meteor
How to Install
Create and run a Meteor app
Next time you will know how to create a Meteor real-time chat app just in 30 minutes (https://blog.designveloper.com/2016/06/13/create-a-meteor-chat-app-in-30-
minutes/). Stay tuned!
(https://www.facebook.com/sharer/sharer.php?
u=https%3A%2F%2Fblog.designveloper.com%2F2016%2F06%2F11%2Fget-
started-
with-
meteor%2F)
(http://twitter.com/intent/tweet?
source=Designveloper
Software
agency
-
Meteor
prime
partner&text=https%3A%2F%2Fblog.designveloper.com%2F2016%2F06%2F11%2Fget-
started-
with-
meteor%2F)
(https://plus.google.com/share?
url=https%3A%2F%2Fblog.designveloper.com%2F2016%2F06%2F11%2Fget-
started-
with-
meteor%2F)
(http://www.linkedin.com/shareArticle?
mini=true&url=https%3A%2F%2Fblog.designveloper.com%2F2016%2F06%2F11%2Fget-
started-
with-
meteor%2F&title=Get%20started%20with%20Meteor&summary=What%20is%20Meteor%3F%20You%26%238217
side%20and%20server-
side.%20%5B%26hellip%3B%5D&source=Designveloper
Software
agency
-
Meteor
prime
partner)
(http://www.tumblr.com/share/link?
url=https%3A%2F%2Fblog.designveloper.com%2F2016%2F06%2F11%2Fget-
started-
with-
meteor%2F&name=Get%20started%20with%20Meteor&description=What%20is%20Meteor%3F%20Yo
side%20and%20server-
side.%20%5B%26hellip%3B%5D)
JavaScript Meteor Real-time
(https://blog.designveloper.com)
Create a Meteor chat app in 30 minutes (https://blog.designveloper.com/2016/06/13/create-a-meteor-chat-app-in-30-minutes/)
Y O U M AY A L S O L I K E