The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

SIMPLE CORELIST SERVER DEMO

This module bundles everything that you might need in order to implement a Froody service.

THE API

To start with, we provide an API definition in Corelist::API. We have to provide an XML description of the publicly facing methods for our service. In this case, our API methods are:

  froody.demo.core

THE IMPLEMENTATION

We implement all the methods in the froody.demo namespace, as defined with Corelist::API

See Froody::QuickStart for an explanation of how this works.

After we've loaded the implementation, we can start the standalone server. The current implementation of the standalone server will walk @INC to discover all Froody::Implementation subclasses, and register all required implementations.

Once the server has started, you can test the functionality of the server by using the froody script to connect to the server:

  froody -u'http://localhost:4242/' froody.demo.corelist module=Froody