I want to embed a simple web server into a cocoa application that can support dynamic operations, like processing form submissions. It should all be contained in the app. My first thought would be to include a Rails server, but something about that seemed wrong. Are there any examples of people integrating a web server in their app?
+2
A:
More info: I've been looking at cocoahttpserver (http://code.google.com/p/cocoahttpserver/) but it would be nice to have an embeddable server which supported output templates like rails, php, django, etc.
Jeremy Gillick
2010-01-20 01:02:41
+1
A:
I've prototyped somethign that uses a combination of CocoaHTTPServer and MGTemplateEngine. Here's the current GIT repo for the full app in progress: http://github.com/jgillick/Ganzbot-Controller
Look at GanzbotServer.m for how I wired those two libraries together. (FYI: You need to install RegexKit to get MGTemplateEngine to compile)
Jeremy Gillick
2010-01-26 21:34:28