Getting started with Dancer is easy - we hope you'll be surprised how simple, fun and flexible building a website in Perl with Dancer can be. Even if you're a newcomer to Perl, you should find the simple things easy, and hard things possible.
For easy and automatic installation of Dancer, we recommend using cpanminus:
curl -L http://cpanmin.us | perl - --sudo Dancer2
Of course, you can use any other CPAN client to do so, or even install it manually.
A Dancer application can be as simple as a one-liner, but you may want to start with a complete structure for more complex applications. To help you do so, dancer is shipped with a helper that can scaffold a new skeleton for you.
Everything is ready and works out of the box (with a nice design, jQuery and environment-related configurations).
$ cd MyWeb-App $ plackup -r bin/app.psgi >> Dancer server 16622 listening on http://0.0.0.0:5000 == Entering the development dance floor ...
Note that a Dancer startup script is also a PSGI application.
Resources to learn more:
If you're looking to learn to use Perl, we hope that the simplicity and ease of getting started with Dancer will be very helpful to you; however, you'll probably also want to find some decent tutorials and resources to learn about Perl itself. Do be wary of some of the results which Google will turn up - there's some very outdated and in