At 06:18 PM 11/5/2005, Bill Stephenson wrote:
I have a web based app that I've developed on my MacOS X desktop (and iBook) using perl and some modules I've installed. To test it I use the built-in apache web server and Safari web browser pointed at "http://localhost/cgi-bin/myApp.cgi". Right now I'm playing with re-factoring it to use a web app framework like "CGI::Prototype" or "CGI::Application". It works pretty good. I mean, it's pretty fast, stable, and now I'm adding some "Web 2.0" stuff that adds some pretty cool features like auto completing forms, dynamic content, and even some cool visual effects. So, I keep coming back to these questions...
Depending on the nature of your application, you might look at Catalyst as well. I've been playing with it recently, and it's pretty nice. It also builds a standalone server for you, for lightweight use (like running on a local machine).
First, how hard is it to create an "Mac OS X Installer" that can set this up on any mac to run without an internet connection? I played around with this a little a long time ago, but had trouble getting file permissions set-up right and turning on apache, and never even tried to install perl modules.
I can't comment on this.
Second, is it possible create a way to run my content in a native MacOS X Window instead of the web browser? If this could be done, and I could connect the window and "main menu bar" at the top of the screen to my perl CGI script, then I'd almost have a native Mac OS X "Look and Feel" with little additional effort. I guess I envision something similar to the "Help" application that I can manipulate with my perl CGI scripts...
Here's the difficulty... You basically need a browser to display and render HTML.. Now, granted, the Help Application is in a lot of ways a browser. What you're kind of talking about is what's known as a "Rich Client", a browser that has additional features for presenting more "traditional" application type controls and handlers.
I don't know of any particular (and particularly Perl oriented) Rich Clients that are specific to the Mac - but Eclipse is working on a generic Rich Client that can be used from anything... but you might have to mix in some Java at this point.
But then again, I haven't looked for any Mac specific Rich Clients.
It seems that maybe Sherm's stuff (CamelBones and FatCamel) might already provide much of what is need to do these things.
Except for you'd probably have to rebuild your views to use Cocoa instead of HTML. This might be a lot more work than it seems up front.
Finally, Does this make any sense to anyone else (or does my reputation grow yet larger)?
Again, it kind of depends. Web based applications are usually different in scope and usage patterns than standalone applications. If your app really makes more sense as a standalone desktop app, then you should probably go to the trouble to refactor it to use CamelBones. If it makes more sense as a web app, you should maybe look into distributing it in a "hosting" manner, rather than an installer manner.
This also changes if you're planning on selling this, or merely making it available.
-jeff
