Hosting Torque Apps on GitHub For Fun (and Profit?)

TL;DR: Go to https://github.com/bittorrenttorque/onehash.com and hit the Fork button. In minutes, the entire site will be publicly hosted via your github pages at http://YOURGITHUBUSERNAME.github.com/onehash.com.
WARNING: Either delete the CNAME file or delete its contents. GitHub pages hosting will fail if it thinks two repos are serving the same domain.

* I've forked the onehash.com repo into my personal account and it is now hosted at http://pwmckenna.github.com/onehash.com

* This works for most https://github.com/bittorrenttorque repositories. Try https://github.com/bittorrenttorque/paddleover.com




All of our Torque Demo Apps are built using btapp.js, and while they communicate with a background torrent client via http interface, there is no traditional backend server to any of the apps. They’re just a collection of static Javascript/HTML/CSS. Because all of the files that we’re serving are static, we can take advantage of github’s gh-pages branch, to publicly serve our web apps directly from the repositories that we do develop in.

For instance: http://onehash.com points to http://bittorrenttorque.github.com/onehash.com, which is always up-to-date because we do developement in the gh-pages branch rather than master.

So that’s it! We’ve built these apps largely as examples, but we encourage you to take them wholesale if you feel you can give them an audience. Each of the apps are covered under the MIT software license, so don’t worry about any limitations or obligations. That being said, I do love an appreciative tweet :)

If you think this is swell/stupid/confusing, or you’re a programmer hoping to get started with btapp.js, feel free to drop me a line. I’m happy to help.