24
Jan 13

Frontend centric free hosting at Github

While struggling to find a decent hosting for toy projects I stumbled upon a completely free solution – Github Pages. It is feasible to think of Github as a free and scalable hosting platform for… ClojureScript powered web apps (or any other JavaScript centric one)! As stated by company employee, Github Pages service has no traffic limits (however some files used by XXX sites were banned due to JavaScript hotlinking).

One of the least known features offered by Github is hosting of static html pages with support of Jekyll static content generator. Well, at least I’ve found out about it very recently. Pages can be attached to the user domain (username.github.com) or to each of the user’s repositories (username.github.com/repository). A custom domain may also be used.

All the updates to pages are done through GIT. Project specific content should be kept on separate branch called gh-pages. As a result all project related stuff may be now kept in one place. It is even possible to host a whole project if it doesn’t require any dynamic server side logic. Did I mention all this hosting is for free? :)

Modern user facing web applications very often make an extensive use of client processing power. Many bloggers (especially the geeky ones) have migrated recently to static blog generators, or started writing their own one… Any content that resembles a blog post or a simple page may be efficiently stored as a static content. Additional features such as commenting systems may be provided by external services or, in this case, be replaced by Twitter. To give you a taste of how amazingly a static website can present itself take a look at developmentseed.org.

What I think of is application engine written completely in ClojureScript fed with content from the server. That content could be changed from time to time with simple Git operations and Github hosted Jekyll engine would automatically generate it to static JSON or…. even Clojure data files for easier consumption by client side code. It is nice to think of all the possibilities that are now freely available and don’t require any additional providers and money.

It is also worth to note that Bitbucket has a similar service but it looks like only basic html pages may be hosted without any support from a static content generator.

Getting back to Github, I read a bit about the terms of use and people opinions and I’m still not sure whether it’s the right choice to host your strategic applications there. I wonder if it would survive the Digg or Hackernews effect :) It looks like nothing else is left for me but to write a super popular web app and find out!

2 thoughts on “Frontend centric free hosting at Github

  1. Ian Phillips

    It’s better than that, you can use any domain name if you have the DNS set up, just put a file called CNAME in the repo with the domain name in it. For example my static blog (http://ianp.org/) is served directly from GitHub like this (it doesn’t use ClojureScript though!).

    :-)

    Reply

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>