6 use Catalyst::Runtime '5.70';
8 #Need to preload, otherwise the first hit is slow
12 # Set flags and add plugins for the application
14 # -Debug: activates the debug mode for very useful log messages
15 # ConfigLoader: will load the configuration from a YAML file in the
16 # application's home directory
17 # Static::Simple: will serve static files from the application's root
20 use parent qw/Catalyst/;
22 our $VERSION = '0.01';
24 # Configure the application.
26 # Note that settings in ndweb.yml (or other external
27 # configuration file that you set up manually) take precedence
28 # over this when using ConfigLoader. Thus configuration
29 # details given here can function as a default configuration,
30 # with a external configuration file acting as an override for
33 __PACKAGE__->config( name => 'NDWeb' );
34 __PACKAGE__->config->{'Plugin::Authentication'}{'use_session'} = 1;
38 # Start the application
39 __PACKAGE__->setup(qw/
45 Authentication::Store::NDWeb
46 Authentication::Credential::Password
53 Session::State::Cookie
58 NDWeb - Catalyst based application
62 script/ndweb_server.pl
66 [enter your description here]
70 L<NDWeb::Controller::Root>, L<Catalyst>
78 This library is free software, you can redistribute it and/or modify
79 it under the same terms as Perl itself.