A CouchDB GUI front end

I decided to hack together a quick GUI front end for CouchDB to help with my tinkering around. Most people will probably groan and stop reading now, because I implemented it in C#/.NET. Although I’m not going to apologise for that, I do feel the need to justify it:

  • I didn’t want to spend any time on it, and for various reasons I can do this kind of crap in C# with my eyes shut and no RTFMing.
  • I needed a C# wrapper class to patch into an existing application, and this started out as a testbed for that.

If you haven’t been scared off already, here’s a brief summary of what you can do:

  • Browse, create and delete databases
  • Execute ‘queries’ (temporary views)
  • Browse the documents in a database
  • Create and delete documents

Here are some screenshots of the imaginitively titled CouchBrowse application:

CouchBrowse 1

CouchBrowse 2

CouchBrowse 3

It’s worth pointing out that it’s still fairly rudimentary, but working. In particular, it needs some proper JSON parsing rather than the ad-hoc horrors I threw together, and some decent formatting and syntax highlighting would be good too, but it suits my purposes for now.

If anyone is actually interested in getting hold of it, shout and I’ll stick the code and/or binaries somewhere. It was built with SharpDevelop 2.2 on Windows – I don’t know how hard it would be to get it running under Mono.

  1. Aaron Conran’s avatar

    I’d love to see a copy of your source. I tried to get CouchDb up and running on Windows last week but after several hours was still unsuccessful. Are you running the server on Windows or *nix?

    Reply

  2. CiaranG’s avatar

    The server’s running on Debian. I haven’t tried myself, but I gather the Windows build side of things is not well tested at the moment, so it’s not surprising you had problems. If you’ve only got Windows available and want to get going with CouchDB, I’d suggest VMWare Server+Debian, and if you skip back a few posts you’ll find a full set of instructions for compiling it on that setup.

    I’ll put my source up tonight (GMT) – too much ‘real’ work to do in the meantime.

    Reply

  3. Jake Good’s avatar

    Excellent! I’ll snag a look at the source tonight…

    Reply

  4. bradk’s avatar

    Just so you know, couchbrowse is broken when used against the latest couchdb trunk. Queries appear to be using the wrong mime type:

    HTTP/1.1 500 Internal Server Error
    Server: MochiWeb/1.0 (Any of you quaids got a smint?)
    Date: Tue, 10 Jun 2008 20:58:28 GMT
    Content-Type: text/plain;charset=utf-8
    Content-Length: 66

    {“error”:”incorrect_mime_type”,”reason”:”application\/javascript”}

    Is this library still being maintained? Thanks.

    Reply

  5. shraddha’s avatar

    cn u plz mail m ur source code

    Reply

    1. CiaranG’s avatar

      @shradda Th lnk t th src cd is abv alrdy

      Reply

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> <pre lang="" line="" escaped="" highlight="">