© Moritz Lenz 2020
M. LenzRaku Fundamentals https://doi.org/10.1007/978-1-4842-6109-5_12

12. Creating a Web Service and Declarative APIs

Moritz Lenz1 
(1)
Fürth, Bayern, Germany
 
Nowadays, it seems like every software must be reachable through the network, in the cloud.
../images/449994_2_En_12_Chapter/449994_2_En_12_Fig1_HTML.jpg
Figure 12-1

The minimalistic web frontend to the datetime conversion app

In this spirit, we’ll take a look at a simple way to create a web service in Raku by using Cro,1 a set of libraries that makes it easy to write asynchronous web clients and services. The name Cro comes from a terrible pun: it allows me to write microservices, my cro services.

Later in this chapter, we’ll take a look ...

Get Raku Fundamentals: A Primer with Examples, Projects, and Case Studies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.