I’m not saying this combination is at all practical for serious use, but it could be useful in a pinch, or when monkeying around with some prototypes while using multiple computers. Plus Cloud9 is just fun to look at, and this provided a good excuse to use it for real once in a while. Oh, and it’s all free (as in beer).
To get started, sign up for a Stackmob account, and a GitHub account. Both sites have amazing documentation for getting up-and-running on their respective services. GitHub has very detailed instructions for setting up your account with a git client on Linux, OS X, and Windows. If you haven’t already, follow those instructions, but do not yet create a repository.
By this point, you can edit files locally, push the files to GitHub, and see your changes reflected online. To start editing online, go to c9.io and log in using your GitHub account. When you reach your dashboard, you should see a big green button that says Create New Project in the left-hand sidebar, as well as a section in the sidebar labeled Projects on GitHub. The URL for your dashboard is http://c9.io/yourgithubusername. If you cannot see your GitHub project, click the refresh button in the far lower left corner of the screen. Select your StackMob GitHub project from the sidebar menu, and click Clone to Edit. In the modal window, select Shared Development Server and click Checkout. It will take a minute, but your project should be created and listed under My Projects. Select your project and click Start Editing. You should be taken to the editor window where you can open and edit your project files. Take a few minutes to admire the lovely UI and its many features, and edit a file or two.
To test out your edits, open the console window (Menu: Windows > Console ) and run your usual git commands – e.g. git commit -a -m “msg” and git push. The Cloud9 git client will push your changes to your GitHub master branch, and those changes will then propogate almost immediately to your hosted StackMob application.
This is creating a web application in the cloud. Development-in-the-cloud is not quite cut out for daily use, but if you really need to try out some code or get in a quick change from any computer (or tablet, or phone), this is a nifty way to do it.