-
-
30 Apr 2015 16:48:58 UTC
- Distribution: Rapi-Demo-Chinook
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (5 / 0 / 0)
- Kwalitee
Bus factor: 2- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (351.94KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst::Model::DBIC::Schema
- DBIx::Class::Core
- DBIx::Class::Schema
- File::ShareDir
- FindBin
- Module::Runtime
- Moo
- Moose
- MooseX::MarkAsMethods
- MooseX::NonMoose
- Path::Class
- RapidApp
- RapidApp::Builder
- RapidApp::Util
- Types::Standard
- strict
- utf8
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Rapi::Demo::Chinook - PSGI version of the RapidApp "Chinook" demo
SYNOPSIS
use Rapi::Demo::Chinook; my $app = Rapi::Demo::Chinook->new; # Plack/PSGI app: $app->to_app
Or, from the command-line:
plackup -MRapi::Demo::Chinook -e 'Rapi::Demo::Chinook->new->to_app'
DESCRIPTION
This module is a simple Plack/PSGI version of the RapidApp/RapidDbic "Chinook" demo at http://www.rapidapp.info/demos/chinook. This module was written to allow CPAN distribution of the demo for easy access and portability within PSGI-based setups.
CONFIGURATION
Rapi::Demo::Chinook
extends RapidApp::Builder and supports all of its options, as well as the following params specific to this module:chinook_db
Path to the SQLite database file, which may or may not already exist. If the file does not already exist, it is created as a copy from the default database, which is the state of the DB at the end of "Part 2" of the Chinook demo at http://www.rapidapp.info/demos/chinook.
Defaults to
'chinook.db'
in the current working directory.METHODS
init_db
Copies the default database to the path specified by
chinook_db
. Pass a true value as the first argument to overwrite the target file if it already exists.This method is called automatically the first time the module is loaded, or if the
chinook_db
file doesn't exist.SEE ALSO
AUTHOR
Henry Van Styn <vanstyn@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by IntelliTree Solutions llc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Rapi::Demo::Chinook, copy and paste the appropriate command in to your terminal.
cpanm Rapi::Demo::Chinook
perl -MCPAN -e shell install Rapi::Demo::Chinook
For more information on module installation, please visit the detailed CPAN module installation guide.