I use Heroku, Perloku and Mojolicious for my personal website. I have a couple very basic modules I wrote to connect to the database and run single query.
https://github.com/elmoren/perl-mojo-heroku
I use the full size Mojolicious App. I put all my .pm
files in the lib
directory. Then in my Mojolicious app file lib/NJEApp.pm
:
use lib 'lib';
use Projects; # This is a basic module that runs a single database query.
In the script/StartApp.pl
. This file is called by the Perloku
file in the top level directory.
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use Mojolicious::Commands;
#~ Start the Commands for the Application
Mojolicious::Commands->start_app('NJEApp');
For external modules, you can put them in the Makefile.PL in the PREREQ_PM = {}
section