I’m trying to build a seat map for work. I’ve did it in OmniGraffle a year ago, but too many people have joined and/or moved seat for anyone to keep up. So be it - Angular and CouchDB will save the day. Because this is in public, I’ll do this as the seat layout of the Canadian parliament, which is readily available as SVG on wikipedia:

CouchDB is a great little store. The Angular usage of it, is more or less just plain Angular. The JavaScript is 52 lines of JavaScript. There is a lot of Copy/Paste in the HTML, but that could not be helped given the nature of the SVG. I tried to use ng-init for the seat number per <rect/>, but it did not work as expected. I’m misusing ngResource too for the original lookup or people in seats - I should have used ngHttp. I’m only a few hours on from first picking up CouchDB and I suspect there’s better queries I could do to turn the canonical …