Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
HelloWorld-MultiTarget
HelloWorld-ObjC
HelloWorld-Swift
HelloWorld
LongRequest
SecureHTTPServer
ServerStats
README.md

README.md

Examples

Here’s a list of the examples to help you get started.

Hello World

This example contains the full code of the “Hello World” app developed in the “Getting Started” guide.

HelloWorld-ObjC and HelloWorld-Swift

These are two standalone launchd daemons. The same exact functionality is replicated in Objective-C and Swift.

HelloWorld-MultiTarget

This example creates a launchd daemon app, an iOS app, a tvOS app and a macOS Cocoa app, using a shared code-base. The code structure in this one is a little more complicated, as it needs to reuse the same code base for different targets.

You should have previous knowledge of developing for the platforms as well as of creating multi-platform projects to make understanding this example easier.

LongRequest

This example demonstrates how to handle request that could potentially take longer that the builtin time limit to complete.

SecureHTTPServer

This example demonstrates how to setup an HTTPS server in an iOS app. The same of setting up a secure web server is also valid for an Apple TV app or a Mac app, be it Cocoa or launchd, Swift or Objective-C.

ServerStats

This example illustrates how to embed a Criollo HTTP server inside a macOS Cocoa app. It also shows how you can control and get info about the server from the app and display it to the user.


Check out the Criollo Blog for news, ideas and updates on Criollo.