Getting Started with Meteor


Before doing this tutorial you should have setup your environment:

All the operation achieved with the 'scalingo' CLI can also be done on our web dashboard.

Initialize your application

# Install Meteor
$ curl | /bin/sh

# Create your app
$ meteor create my-app
$ cd my-app

# Add everything in the Git repository
$ git init .
$ git commit -m "Init meteor application"

Create your application and provision a MongoDB database

The Meteor framework uses extensively MongoDB as a database. Hence you need to provision a new instance of this database to your application.

$ scalingo create my-app
Git repository detected: remote scalingo added
→ 'git push scalingo master' to deploy your app

$ scalingo --app my-app addons-add scalingo-mongodb mongo-sandbox
-----> Addon scalingo-mongodb has been provisionned
       ID: my-app-7247
       Modified variables: [MONGO_URL SCALINGO_MONGO_URL]
       Message from addon provider: Database successfully created

Deploy your application!

This operation has to be done in the directory of your project.

$ git push scalingo master

Access your application

Waiting for your application to boot...
<-- -->

Now you can have fun with meteor and all its real-time feature. Of course, we support WebSocket!

schedule 09 Feb 2015