MasonX::MiniMVC::Installer -- Install a MiniMVC webapp
minimvc-install MyApp
This module shouldn't be used directly. Use the minimvc-install script instead.
minimvc-install
Install a new stub application.
Checks that the application name supplied on the command line looks like a Perl application name, i.e. matches \w+. Dies if it's not OK.
Checks that the current directory is empty before installing MiniMVC. Dies if it's not.
Builds the directory structure for the application, i.e. lib/, t/, etc.
Writes stub files for the application, i.e. autohandler, dhandler, sample controllers, etc.
${app_name}::Controller::Sample -- Sample MiniMVC controller
This controller handles the sample/ part of the website.
This is called when someone goes to http://example.com/sample/
${app_name}::Model::Sample -- Sample MiniMVC model
This is a stub model class for your MiniMVC application. You could use DBIx::Class, Class::DBI, or some other method to represent your data here in an OO way.
You would then use ${app_name}::Model::Whatever from within your Controller classes to access data.
To install MasonX::MiniMVC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MasonX::MiniMVC
CPAN shell
perl -MCPAN -e shell install MasonX::MiniMVC
For more information on module installation, please visit the detailed CPAN module installation guide.