Before we start modifying MyApp
, let's take a look at how a Catalyst application is structured on a disk. In the root directory of your application, there are some support files. If you're familiar with CPAN
modules, you'll be at home with Catalyst. A Catalyst application is structured in exactly the same way (and can be uploaded to the CPAN
unmodified, if desired).
Note
This chapter will refer to MyApp
as your application's name, so if you use something else, be sure to substitute appropriately.
Makefile.PL:
This is a script that will generate a makefile to build, test and install your application. It can also contain a list of your application's CPAN dependencies and automatically install them. To run Makefile.PL
and generate a Makefile
, simply type perl Makefile.PL
. After that, you can run make
to build the app, make test
to test the app (you can try this right now, as some sample tests have already been created), make install
to...