SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Jellybean - a Perl-based object-oriented web server

0.30 - to be released soon

DEPENDENCIES

        CGI::Simple
        Class::Roles
        File:MMagic
        HTTP::Daemon
        IPC::Run
        Scalar::Util (core)
        Test::Simple
        Test::Exception
        Test::MockObject
        Text::WikiFormat

Template-Toolkit 2, to play with the neat templating stuff. You don't actually need it with Jellybean::Container::Wiki as bundled here, but it may help.

Install these from the CPAN or use ActiveState's PPM tool. Installing modules on Unix systems is easy:

        perl -MCPAN -e shell
        install File::MMagic

Windows isn't a lot harder:

        ppm install Test::Simple
        ppm install Template

To start, run a program something like this:

#!/usr/bin/perl -w

use strict;

use Cwd;
use File::Spec::Functions;

use Jellybean::App;

my $app = Jellybean::App->new(

        HTTP     => { LocalPort => 5000 },
        handlers => 
        {
                default =>
                {
                        type     => 'Wiki',
                        wikibase => catdir( cwd(), 'demo', 'wiki' ),
                },
        },

);

$app->loop();

You'll want to read the documentation for Jellybean::Engine and probably Jellybean::Handler::File, not to mention Jellybean::App. I'll write a tutorial soon.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.