Leanpub Header

Skip to main content

Web Application Development in Perl 6

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
199
Readers
114
Pages
About

About

About the Book

Bailador and this book are forming each other as they move forward in parallel. You'll get frequent updates about the project and the current state of its feature through this book. At least till December 2017, the planned publishing date of the book.

Share this book

Price

Pick Your Price...

Minimum price

$7.99

$9.90

You pay

$9.90

Author earns

$7.92
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Gábor Szabó

Gábor Szabó has been programming for more than 40 years in a number of languages and in various environments.

These days he usually helps companies improve their engineering practices by providing training, introducing test automation, CI/CD. Sometimes this includes building internal web sites. Gabor also loves explaining things and provides training to his corporate clients and also in the academia.

Gabor runs the Code Maven site and a number of its sub-site where he writes about technologies such as Python, Rust, Git, Continuous Integration, etc.

The first main language Gabor used was Perl and so he maintains the Perl Maven site and he is the chief editor of the Perl Weekly newsletter.

The books Gabor publishes are based on his course materials. They include lots of examples with detailed explanations. This way if you can't book a course with him, at least you can read the materials and learn by yourself.

If you have questions fell free to send him a message via LinkedIn.

Contents

Table of Contents

Preface

  1. Bug reporting

Changes

  1. v0.38 2017-12-03
  2. v0.37 2017-09-03
  3. 2017-08-05
  4. 2017-07-09
  5. 2017-07-08
  6. 2017-06-29
  7. 2017-06-21
  8. 2017-06-19

Supporters

Contributors

Hello Perl 6!

  1. What are Perl 6, Rakudo, and Rakudo Star?
  2. Community
  3. Installing Perl 6
  4. Install and set up Rakudo Star
  5. Install Rakudo on Linux
  6. Development environment using Vagrant
  7. “Hello World” on the command line
  8. “Hello World” in a plain program

Hello, world!

  1. What is Bailador?
  2. History of Bailador
  3. Contributors of Bailador
  4. Community
  5. Install Bailador
  6. “Hello World” with Bailador
  7. Troubleshooting
  8. Hello World with skeleton
  9. Testing the “application” so far
  10. Adding to Git
  11. Setting up Continuous Integration using Travis-CI
  12. Auto reloading Bailador when files are changed
  13. Errors in the code
  14. Development mode

Deployment

  1. Configuring Nginx as a reverse proxy
  2. Configuring Apache as a reverse proxy
  3. Using Docker
  4. Deploying on Ubuntu

Database access

  1. Database access from Perl 6
  2. Command line program to access the database
  3. CRUD (Create, Read, Update, Delete) from the command line
  4. Configuring MySQL
  5. Configuring PostgreSQL
  6. Use SQLite

User Input

  1. Echo with Bailador
  2. Counter that stores the count in a text file.
  3. Processing forms
  4. Input validation
  5. Counter that stores the count in a database.

Chapter 5 - Sessions

  1. Cookies
  2. Session management

Chapter 7 - API and Ajax

  1. Traditional web sites and Single Page Applications
  2. Full stack developer
  3. API and client-server programming
  4. AJAX - interaction between the client and the server.
  5. Data Serialization - Marshalling
  6. JSON - JavaScript Object Notation
  7. Creating an API that returns JSON
  8. Echo
  9. Calculator
  10. Client side in plain JavaScript
  11. Client side in JQuery
  12. RESTful API
  13. Simple calculator using Ajax with JQuery

Chapter 8 - Routing

  1. Setting up simple routes
  2. Routes with parameters
  3. Routes with wildcards
  4. Responding to GET request
  5. Responding to POST requests
  6. Request and Response objects

Chapter 9 - Templating system

  1. Mobile friendly - Make the HTML mobile friendly.
  2. Template::Mojo, the Templating System of Bailador
  3. Passing data to the templates

Chapter 10 - Handling errors while serving pages

  1. Handling 404 errors
  2. Handling 500 errors
  3. Handling 30x redirects
  4. Setting the HTTP header manually
  5. Debugging

Chapter 11 - Serving static files

  1. Serving static files such as images, css, JavaScript files
  2. Generating robots.txt
  3. Generating sitemap.xml
  4. Generating RSS and Atom feed

NoSQL

  1. Using Memcached
  2. Using MongoDB
  3. Inspect manually and delete the MongoDB database
  4. Using Redis

Applications

  1. Personal Bookmark manager
  2. URL shortener
  3. TODO list
  4. Blog engine
  5. A job board
  6. Real estate manager
  7. Flight ticket vendor for low-cost flights
  8. Banner ads rotator
  9. Conference organizer
  10. Gradual development

Cookbook

  1. Sending e-mail
  2. Hashing Passwords and verifying them
  3. Verify a password
  4. Registration process with double-opt-in
  5. Change Password (when logged in)
  6. Reset forgotten password process
  7. IP based access restriction (2-step verification with e-mail)
  8. Secure initial configuration of web application
  9. Uploading files (e.g. images)
  10. Rate limit

Appendix

  1. What files were installed by a module

Index

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub