# Meteor Installation

Pre-Requisites:

It is assumed that you already know React. If not, please refer to the official React tutorial here: https://facebook.github.io/react/docs/getting-started.html.

You must have a decent understanding of Meteor and it's integration with React. For a good tutorial, please refer to the offical Todo App with React guide.

Installation:

The Meteor version that ships with Rubix is v1.4. If you haven't installed Meteor already please head over to: https://www.meteor.com/install and install for your desired operating system. If you have already installed Meteor ensure that it is updated to v1.4 before proceeding.

To check your meteor version please run the following command:


$ meteor --version
Meteor 1.4

Once you have installed Meteor open a terminal and change your current working directory to the meteor directory in your downloaded Rubix folder like so (on Windows you would need to replace the backward slash "/" with the forward slash "\"):


$ cd rubix/meteor/

As you can see, the meteor directory has two sub-directories. A meteor seed named meteor-seed and a simple Todo list example app named meteor-example.

We will be re-creating the meteor-example app, which, you can use as a reference for this tutorial. Please clone the meteor-seed directory and rename the new copy to meteor-todolist. (The installation steps for meteor-example is the same as below so we won't be repeating it here)


$ cp -rf meteor-seed meteor-todolist

Change the working directory to meteor-todolist and install all the project dependencies:


$ cd meteor-todolist
$ meteor npm install

You may get some deprecation warnings as well as peerDependency warnings in your terminal while/after the NPM installation. Please ignore those warnings.

Once you have installed the necessary NPM dependencies, start the meteor server by launching the "meteor" command:


$ meteor

Wait for the build/compilation to finish. Once that is complete you'll be notified in the terminal that your app is ready and is accessible via http://localhost:3000.

Navigate to http://localhost:3000 to see your app in action.