Modern Perl Web Development with Dancer2

Dave Cross — 480 minutes 🐪

In this workshop we will build a simple web application using Dancer2 and several other modern web tools.

Prerequisites.

This course is aimed at everyone. But you'll probably get more out of it if you have a basic understanding of web technologies like HTML, CSS and Javascript. You'll also need to know a bit of Perl.

Description.

Over the course of twelve steps, we’ll build a simple Todo list program. We’ll be using a number of modern web development techniques (not just Perl) in order to make the app look really shiny and modern.

Topics Covered.

The twelve steps we will be taking are as follows:

* Set up a basic Dancer2 app
* Make it look nicer with the addition of the Bootstrap CSS framework
* Use Plack Middleware to serve static content more efficiently
* Display some data in our app
* Get the data from a database
* Return the data as JSON and display it using Mustache
* Use jQuery to show/hide completed items
* Mark items as completed
* Add new tasks to the app
* Add user login
* Edit and delete tasks
* Add tags to tasks and filter the display on those tags

If there’s time left at the end, we’ll discuss other useful enhancements that we might want to make to the app – and perhaps even try adding them.

We’ll be using the following Perl tools:

* Dancer2
* PSGI/Plack
* DBIx::Class
* Moose
* DateTime

And the following non-Perl tools:

* Bootstrap
* jQuery
* Mustache

This is an updated version of a course I ran at YAPC in Cluj in 2016.

This is a hands-on workshop. Participants will need to bring a laptop. I'll email participants before the course to tell them what software they need to have installed.

About the teacher.

Dave Cross has been programming in Perl since 1996 and running training courses on the language since 2001. He often runs workshops alongside Perl conferences Dave is the author of "Data Munging with Perl" and "Perl Taster" and a co-author of "Perl Template Toolkit". In 1998, he started the London Perl Mongers, the first Perl user group outside of North America. In 2004, Dave won a White Camel Award for his non-technical work for the Perl community.



Talk tags
perl, perl5, web dev, web app, dancer2, jquery, bootstrap, mustache
Perl versions
🐪 Perl 5
Target audience
Any
Category
Perl 5 programming
Talk duration
8 hours (workshop)
Talk status
cancelled