Search code examples
meteorcloud9-ide

Create a Meteor App on Cloud9


Cloud9 is the only online IDE recommended for Meteor in meteor.com. But the 'two clicks to awesome' guide is not applicable, because Meteor is not listed in workspace types any more. What's the best way to create a Meteor app on Cloud9?


Solution

  • I tested the following procedure and it works:

    1. Go to https://c9.io/new and create a Blank workspace.
    2. Run curl https://install.meteor.com/ | sh in command line to install Meteor.
    3. Run meteor create my_cool_app. (Don't put ~/ before the app name.)
    4. Run cd/my_app
    5. Run meteor --port $IP:$PORT to start the sample app. (Without $IP:$PORT it hangs). Make sure the app is working.
    6. If you want to upload your app to the new directory, delete all files and folders in my_app directory.
    7. Click on my_app name on the right pane. Then in the "File" menu, click on upload files.
    8. Make sure you have a list of packages that needs to be installed. You can use meteor list on your previous working directory.
    9. First use meteor add and meteor remove commands to add/remove the MDG packages. If you install 3rd party packages first, you'll get weird errors.
    10. Add 3rd part packages.
    11. Run meteor --port $IP:$PORT to start your app. The first time it may take a few minutes to start the app but later it'll be a few seconds.