Web Application Development in Perl 6
Web Application Development in Perl 6
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.
Table of Contents
-
Preface
- Bug reporting
-
Changes
- v0.38 2017-12-03
- v0.37 2017-09-03
- 2017-08-05
- 2017-07-09
- 2017-07-08
- 2017-06-29
- 2017-06-21
- 2017-06-19
- Supporters
- Contributors
-
Hello Perl 6!
- What are Perl 6, Rakudo, and Rakudo Star?
- Community
- Installing Perl 6
- Install and set up Rakudo Star
- Install Rakudo on Linux
- Development environment using Vagrant
- “Hello World” on the command line
- “Hello World” in a plain program
-
Hello, world!
- What is Bailador?
- History of Bailador
- Contributors of Bailador
- Community
- Install Bailador
- “Hello World” with Bailador
- Troubleshooting
- Hello World with skeleton
- Testing the “application” so far
- Adding to Git
- Setting up Continuous Integration using Travis-CI
- Auto reloading Bailador when files are changed
- Errors in the code
- Development mode
-
Deployment
- Configuring Nginx as a reverse proxy
- Configuring Apache as a reverse proxy
- Using Docker
- Deploying on Ubuntu
-
Database access
- Database access from Perl 6
- Command line program to access the database
- CRUD (Create, Read, Update, Delete) from the command line
- Configuring MySQL
- Configuring PostgreSQL
- Use SQLite
-
User Input
- Echo with Bailador
- Counter that stores the count in a text file.
- Processing forms
- Input validation
- Counter that stores the count in a database.
-
Chapter 5 - Sessions
- Cookies
- Session management
-
Chapter 7 - API and Ajax
- Traditional web sites and Single Page Applications
- Full stack developer
- API and client-server programming
- AJAX - interaction between the client and the server.
- Data Serialization - Marshalling
- JSON - JavaScript Object Notation
- Creating an API that returns JSON
- Echo
- Calculator
- Client side in plain JavaScript
- Client side in JQuery
- RESTful API
- Simple calculator using Ajax with JQuery
-
Chapter 8 - Routing
- Setting up simple routes
- Routes with parameters
- Routes with wildcards
- Responding to GET request
- Responding to POST requests
- Request and Response objects
-
Chapter 9 - Templating system
- Mobile friendly - Make the HTML mobile friendly.
- Template::Mojo, the Templating System of Bailador
- Passing data to the templates
-
Chapter 10 - Handling errors while serving pages
- Handling 404 errors
- Handling 500 errors
- Handling 30x redirects
- Setting the HTTP header manually
- Debugging
-
Chapter 11 - Serving static files
- Serving static files such as images, css, JavaScript files
- Generating robots.txt
- Generating sitemap.xml
- Generating RSS and Atom feed
-
NoSQL
- Using Memcached
- Using MongoDB
- Inspect manually and delete the MongoDB database
- Using Redis
-
Applications
- Personal Bookmark manager
- URL shortener
- TODO list
- Blog engine
- A job board
- Real estate manager
- Flight ticket vendor for low-cost flights
- Banner ads rotator
- Conference organizer
- Gradual development
-
Cookbook
- Sending e-mail
- Hashing Passwords and verifying them
- Verify a password
- Registration process with double-opt-in
- Change Password (when logged in)
- Reset forgotten password process
- IP based access restriction (2-step verification with e-mail)
- Secure initial configuration of web application
- Uploading files (e.g. images)
- Rate limit
-
Appendix
- What files were installed by a module
- Index
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 earnedover $13 millionwriting, 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