Hey guys, I want to touch briefly on,
meteor js
today in this video
and a little bit about how to use it.
First thing you're going to do is in the address bar
just
type install meteor
It's going to give us the location
of the meteor installer
to download.
as right here.
If you're on OSX or Linux, just copy this command over here.
Open up Terminal.
Clear that out.
And then paste it in here.
And if you get this error, it means that you don't have curl installed
so you need to install it.
So sudo apt
get install curl
And once curl is setup you can run the previous command again.
And it's going to download meteor
and install it.
I already have meteor installed here I guess.
and so, it's removing my existing
meteor installation, and it's going to download
a new one.
So, when meteor is done installing
it
gives you a notice here,
how to get started.
So, let's just create an app,
do I have a projects directory arleady, I do.
So, I wanted to change directory to projects.
And I'm going to type,
Meteor,
create
to do
and it's going to create project and a project directory,
in my current directory
called "to do".
So, I'm going to change directory,
and then if I,
list the directory meteor has created the three files to get you started.
So I can type meteor
and it's going to launch the program
on port 3000.
There we go.
So, once again, this message means the App has been launched,
so you can go to local hosts
on port 3000
and
this is our meteor App.
It's got an event handler here for the click me button, which counts
the times it's been pressed
But that
doesn't really look to great, so I'm going to close this here.
And how you add packages to Meteor
is you type Meteor
add and then the package name.
So you can,
browse,
Meteor packages,
by
by going to Atmospherejs.com
And if I were looking for say,
bootstrap
I would...
there is a lot here.
However, the official bootstrap
module
or package is
add
twbs:
stands for twitter bootstrap and then
bootstrap
So, when I add that to my project
like this,
and let me go into the
filemanager here into
projects
and to do
and you'll going to see these three files that it created for us.
But if you hit Control+H
you'll going to also see a hidden directory
entitled Meteor,
and this is where it stores the packages
that we
add
and some internal Meteor stuff as well.
So, I'm not going into that.
These are the files that you'll be working in
with Meteor so you can open
for instance, the html file with the
gedit
Here we go.
And you'll see, this is the mark up.
So,
Meteor works with templates a lot.
This isn't an in depth tutorial,
but more about how to get started.
Meteor has a pretty awesome
tutorial on their website. Just go to meteor.com
and you can access the documentation,
Reference points
and the tutorial to get you started.
So,
that's the basic usage
of Meteor in the command line. Typically, it's just Meteor create
in the App name.
And once you're on the app directory just run Meteor to run
the application, and you can use the Meteor add or Meteor remove,
if you want to remove a package,
add to add a package and then the package name.
So, thanks for watching this video, and I hope you guys found it
informative and a good place to start with Meteor.
A selling point for Meteor is the fact that realtime interactions are built
into its core.
So, you no longer have to fake it,
with Javascript, Ajax calls to PHP scripts,
everything is done in Javascript,
it's all realtime
so, It's awesome to work with.
And it makes things easy as well.
So, check that out, if you're into web application development at all.
And I'll see you guys in the next video.