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 Dancer
Of course, you can use any other CPAN client to do so, or even install it by hand.
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 $ ./bin/app.pl >> Dancer server 16622 listening on http://0.0.0.0:3000 == Entering the development dance floor ...
Note that a Dancer startup script is also a PSGI application, so you can power it with any Plack backend, like plackup:
$ cd MyWeb-App $ plackup ./bin/app.pl HTTP::Server::PSGI: Accepting connections at http://0:5000/
See Dancer::Deployment for more ways to deploy your Dancer applications.
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 inadvisable tutorials out there.
The following is a short, non-exhaustive list of resources which are likely to be of use to Perl beginners: