Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packaging Perl Mojolicious web application

I've written a small web application in Perl and I want to package it up so others can use it. My application has the following components

  • Various Perl modules from CPAN

  • My own modules

  • A MySQLdatabase

  • Apache2 configuration

I'm not really sure where to start. Any help is much appreciated

like image 204
user1768233 Avatar asked Feb 15 '13 12:02

user1768233


1 Answers

Submitting a module to CPAN is easy once you get the hang of it, but at first it takes a while to learn. There are several guides to help you, but choose one that was written within the last few years. Here is one: http://www.perlmonks.org/?node_id=879515

You will need to learn at least a little bit about one of the build tools. I like Module::Build, some others like ExtUtils::MakeMaker (I don't personally) or the pseudo-tool Dist::Zilla which may be used to ease the process of using the previous.

I might suggest trying to releasing a tiny toy module under the Acme:: namespace to try things before uploading your real module.

Look at some of the dists written by your favorite authors to see what they do. For example mine are here or here including my Mojolicious app Galileo.

Finally, as documented here, to make a Mojolicious app installable you need to move your static files into an installable location. I have made a plugin which can help (if you follow its recipe) called Mojolicious::Plugin::InstallablePaths.

Good luck!

P.S. if you comment with a link to a github repo I would be happy to make some comments (but you will still have to do the heavy lifting of course :-) )

like image 170
Joel Berger Avatar answered Nov 12 '22 21:11

Joel Berger