What Meteor does when you install it

A quick overview of what Meteor does when you install it

I have been playing about with Meteor recently and I am going to start blogging about different cool things you can do with it.

The first pretty cool thing which I haven't seen any applications do before is leverage the power of the pipe for installing Meteor.

The command given on the site to get you up and running is:

curl install.meteor.com | sh

If you are not familiar with the command line this can look a little messy, but this is actually very elegant install solution, it makes sure all new installs have the most bang up-to-date version and uses a shell script for the install, which is supported by a large amount of machines.

The command is divided up into two sections, the section before the pipe ('|') and the section after it.

The section before uses a command that grabs the content from a URL and displays it (in this case the content of install.meteor.com).

Only the pipe tells us that whatever output that first command gives to give it to the second command, so it passes the output of install.meteor.com to the sh command instead of displaying it.

The sh command calls a primitive language used by most *nix based systems. This executes the contents of install.meteor.com allowing the rest of the program to be installed.

If you want to see exactly what is being installed just browse on over to install.meteor.com to take a look.

Normally to install things you download the .sh file, run a change of permissions to allow the file to be executed, and then call it - this method gets around all this in one nice neat line.

You will see for yourself how awesome this platform is to develop on when I start posting some examples and tutorials, but lets just say that when they have made the install this elegant, you can be sure they have made the rest of it just as well.


Recent posts View all

Ruby

Forcing a Rails database column to be not null

How you can force a table column to always have something in it with Rails

Writing Marketing

We've deleted an article's worth of unhelpful words

We've improved several pages across our site by removing words that add no value, and often detract from the article.