Quick Start

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.

Installing Dancer

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.

Creating an application

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.

$ dancer2 -a MyWeb::App
+ MyWeb-App
+ MyWeb-App/config.yml
+ MyWeb-App/cpanfile
+ MyWeb-App/Makefile.PL
+ MyWeb-App/MANIFEST.SKIP
+ MyWeb-App/bin
+ MyWeb-App/bin/app.pl
+ MyWeb-App/bin/app.