In this little tutorial I'll try to explain how to setup an environment to become a Strehler developer, because Strehler needs you, as any of the packages published on CPAN. It's a very basic tutorial, useful for beginners too.
I hope it will help.
The repository
You probably already have a sandbox created in one of the many ways available for perl development. I'm still a fan of the good'ol local::lib but it's good to use also, for example, perlbrew. Your sandbox has to be active during Strehler development and you have to put in it Dancer2
cpanm --notest Dancer2But NOT Strehler. After installing Dancer2 most of the library useful to work with Strehler will be in place, but probably you'll need something more, libraries specific to Strehler work. Just install them in your sandbox the same way using cpanm when running the code point out their absence..
You'll surely need:
- Dancer2::Plugin::DBIC
- Dancer2::Plugin::Ajax
- HTML::FormFu
- Authen::Passphrase::BlowfishCrypt
- IO::Prompt
- DateTime::Format::SQLite
The code
Just pull down all the source from the git repository in a directory you likegit pull git@github.com:cym0n/strehler.gitDownloading the repository you'll have a directory named $GITURL/src/lib and one named $GITURL/src/script. These two directories will come useful soon.
The environment
Now that you have Strehler code it's easy to modify it and manage changes using git. Less obvious how to use this code and see it working. We just need to customize a little the environment. Open a file named strehler-devel and put in it
alias perl="perl -I$GITURL/src/lib"
alias strehler="perl -I$GITURL/src/lib $GITURL/src/script/strehler"When the file is ok source it.
source strehler-devel
Testing site
All Strehler power is now available, coming directly from the git repository on your machine. Now you can easly create a testing site with Strehler onboard using strehler script itself.strehler demoJust run it as
perl bin/app.plto see Strehler and (eventually) your modifications in action.