Create new, complex Promises by composing Promises
Mojolicious 7.49 added an its own implementation of the Promises/A+ specification. mohawk wrote about these in Day 14: You Promised To Call! of the 2017 Mojolicious Advent Calender where he showed you how to fetch many webpages concurrently. This Advent entry extends that with more Promise tricks.
Developing webapps with Mojolicious is a lot of fun!
morbo server for
development, every change to my webapp causes a restart to load my changes.
This way the next request I make has all my new code!
So, I change my code, the webapp restarts, and I go back to my browser window. Wait... Where's my new code? Why isn't the bug fixed? Did... Did I forget to reload my browser window again? Ugh! Of course!
Does this happen to you? Probably not. But, it's still annoying to reload the browser window after every backend code change. It'd be nice if my browser window automatically reloaded every time the web server restarted!
Welcome to another year of the Mojolicious Advent Calendar! 2018 has been very good to Mojolicious and I could think of no better way to kick off this calendar than with a recap of the 2018 Nordic Perl Workshop and MojoConf held in Oslo, Norway.
How to easily add a GraphQL interface to the public REST API of your Mojolicious application
During the Mojolicious 2017 Advent calendar series, we looked at how to build a public REST API using Mojolicious. A technology that is getting a lot of buzz is GraphQL. Now that it has been ported to Perl 5, what if there were an easy way to let people access your API using it?