Chapter 2: Getting Started
Something neat that the Meteor Development Group provides is a free service for quickly deploying a Meteor application to their servers. This freebie shouldn’t be used to host real-world applications:
- You don’t have any control over the server.
- The service could disappear at any time.
- There’s no performance or scaling guarantees.
But it’s an extremely convenient way to share prototypes and simple projects with friends and family.
Here’s how to use it…
To begin, navigate into the folder of a Meteor project. I’ll be using “Todos” as an example, which is inside a “Meteor” folder I created:
Then run the following command:
meteor deploy APPLICATIONNAME.meteor.com
But replace the “APPLICATIONNAME” part with whatever you want to use for the hosted application’s sub-domain. (The value must be unique.)
This is the commmand I used:
meteor deploy mytodosexample.meteor.com
Then tap the “Return” key.
You’ll be asked to enter your email address. If you have an account with Meteor.com, you’ll be asked for your password, and if you don’t have an account with Meteor.com, you’ll be prompted to create one.
Once logged-in, the deployment process will begin.
After a short wait, a confirmation message will appear and the project will become available at the specified URL:
To re-deploy the application after making changes to the project, simply run the same command again.
Unfortunately, the simplicity of this service isn’t reflective of deployment in general, meaning there’s always going to be more work involved with a real-world application, but as we’ll see, it doesn’t have to be so painful.