Getting Started with MeteorJS
If you have landed on this page means you probably have heard about Meteor JS and/or are curious to know what it’s all about.
Meteor’s installation process is very simple and you can usually be up and running in under 5 minutes. You will create and run your projects using Command Line Interfaces since Meteor uses only command line and there is no Meteor icon that you can click to run your Meteor application.
Meteor Platform Support
At the moment, Meteor is officially supported on:
- Mac: OS X 10.6 and above
- Linux: x86 and x86_64 systems
- Windows: Official support for meteor is currently not available. But the news is that the work is in progress and the support for Windows will be out soon. But there is unofficial windows support available right now for you to play around with.
If you are a Windows user or if you’re running an older and unsupported version of Mac/Linux or you don’t want to install Meteor locally, you can check out Nitrous.io.
Meteor has a one line install process. You can install it by opening a terminal window and entering the following command:
curl https://install.meteor.com/ | sh
This command will:
- Connect to install.meteor.com.
- Download the latest version of Meteor.
- Install the software.
Creating a simple app
Once you have installed Meteor, go to the directory where you want to create your project and simply enter the following command:
meteor create myApp
This command will create a basic Meteor project named “myApp” in the current directory.
You now have the basic Meteor project setup and “myApp” folder will contain three files:
There is also a hidden folder “.meteor”, but it may or may not be visible depending on your OS settings.
You can run your newly created application by entering the following commands:
cd myApp meteor run myApp
Once you run the app, it will be accessible at http://localhost:3000 in your browser. Navigate to this URL and you will notice that you are not seeing any static text on the page. Instead, you are viewing a real dynamic web application. You can now plunge right into the HTML and JS files and start to build your own project on top of it.
I believe Meteor is one of the best frameworks available out there for building fast web apps, which will only improve as the time progresses.