¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::RoutesAuthDBI::Install - is a Mojolicious::Controller for installation instructions.
See https://github.com/mche/Mojolicious-Plugin-RoutesAuthDBI/blob/master/Diagram.svg
$ read -d '' CODE <<PERL; perl -Ilib -e "$CODE" get /man use Mojo::Base 'Mojolicious'; sub startup { shift->routes->route('/man') ->to('install#manual', namespace=>'Mojolicious::Plugin::RoutesAuthDBI'); } __PACKAGE__->new->start; PERL
$ read -d '' CODE <<PERL; perl -Ilib -e "$CODE" get /schema/<name>[?...] # /schema/public?profiles=профили use Mojo::Base 'Mojolicious'; sub startup { shift->routes->route('/schema/:schema') ->to('Schema#schema', namespace=>'Mojolicious::Plugin::RoutesAuthDBI'); } __PACKAGE__->new->start; PERL
$ read -d '' CODE <<PERL; perl -Ilib -e "$CODE" get /schema/<name>[?...] 2>/dev/null | psql -d <dbname> # /schema/<name>?roles=groups use Mojo::Base 'Mojolicious'; sub startup { shift->routes->route('/schema/:schema') ->to('Schema#schema', namespace=>'Mojolicious::Plugin::RoutesAuthDBI'); } __PACKAGE__->new->start; PERL
$ read -d '' CODE <<PERL; perl -Ilib -e "$CODE" get /app 2>/dev/null > test-app.pl use Mojo::Base 'Mojolicious'; sub startup { shift->routes->route('/app') ->to('install#sampl_app', namespace=>'Mojolicious::Plugin::RoutesAuthDBI'); } __PACKAGE__->new->start; PERL
$ perl test-app.pl routes
$ perl test-app.pl daemon
$ perl test-app.pl get /<pluginconf->{admin}{prefix}>/<pluginconf->{admin}{trust}>/user/new/<new admin login>/<admin pass> 2>/dev/null
User will be created and assigned to role 'Admin' . Role 'Admin' assigned to namespace 'Mojolicious::Plugin::RoutesAuthDBI' that has access to all admin controller routes!
http://127.0.0.1:3000/sign/in/<new admin login>/<admin pass>
To install Mojolicious::Plugin::RoutesAuthDBI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::RoutesAuthDBI
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::RoutesAuthDBI
For more information on module installation, please visit the detailed CPAN module installation guide.