Getting Started with Meteor
Before doing this tutorial you should have setup your environment:
- Setup the SSH authentication, it has to be done to let you
pushyour application on the platform.
- Install ‘scalingo’ Command Line Interface
All the operation achieved with the 'scalingo' CLI can also be done on our web dashbaord.
Initialize your application
# Install meteor $ curl https://install.meteor.com | /bin/sh # Create your app $ meteor create meteor-app $ cd meteor-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 datastore, so you need an available instance for you application.
$ scalingo create meteor-app Git repository detected: remote scalingo added → 'git push scalingo master' to deploy your app $ scalingo -a meteor-app addons-add scalingo-mongodb free -----> Addon scalingo-mongodb has been provisionned ID: meteor-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... <-- https://meteor-app.scalingo.io -->
Now you can have fun with meteor and all its real-time feature. Of course, we support websocket!