Appharbor recently ran a contest to encourage developers to use their API and showcase the API capabilities.
Based on some ideas floated by the Appharbor team I too decided to build something useful\interesting for Appharbor platform.I decided to create a desktop notification client which can notify user when the build is complete, its status in terms of success or failure.
How Appharbor works is that you push your code to a git repo supported by Appharbor (github, bitbucket etc). As soon as the checkin is done, Appharbor pulls the code base build it, and updates the running website. It's like a single click deployment!
I started to explore my option for a desktop client and some of the options I though of were
- Build a desktop windows app and integrate with the Appharbor API. This approach was the most flexible approach. I have full control of features and capabilities, but would take a good amount of time to develop.
- Use third party desktop notification apps like Growl for Windows and use the Growl API to integrate with Appharbor. The shortcoming with this approach is that the user needs to install Growl for Windows on his machine, but it is better than the first approach as i can make use its existing notification capabilities
What i finally decided was to create a solution that uses Google Talk as the notification client. The advantages of this approach were
- Easy to build and within a short time span.
- No extra installation required. Now a days most people have these messenger clients installed.
- Cross platform \ Cross browser compatible. Works on Mac, Linux, Windows i.e on any system that supports a XMPP client.
- It seems cool :)
- This approach can support any XMPP based client.Google Talk being one of them. This wiki entry details about the existing clients supporting XMPP.
So after dabbling for few days i created a working prototype. Here is how it works.
- User creates an Appharbor Application.
- Navigates to http://appharborbot.apphb.com/ to generate Service hook url.
- Generates the Service hook url from this site.
- Adds the generated Service Hook url to his Appharbor app under the Service Hook section.
- Adds contact firstname.lastname@example.org to his Google Talk
- Receives all build notifications in his Google Talk!!!
I would be soon publishing the second part in this series, where I would talk about the technical aspect of the solution, which is as interesting as the solution. This solution is an amalgamation of Windows Azure and Appharbor so just watch out for my future post.