Example applications

The @unison/cloud-start project contains sample Cloud services of different types. Many of these applications have a corresponding learning module so you can see how they work in a step-by-step fashion.

Create a new project and pull the latest release to get started:

scratch/main> project.create-empty cloud-start
cloud-start/main> pull @unison/cloud-start/releases/latest

Hello World HTTP service

The Hello-World HTTP service is a simple HTTP service that responds with a greeting message.

cloud-start/main> run examples.helloWorld.deploy

Counter service

This simple counter service shows a very basic usage of durable storage.

cloud-start/main> run examples.counter.deploy

Todo list service

The todo list app includes a OrderedTable example. OrderedTable is a key-value store that can be used to store and retrieve data.

cloud-start/main> run examples.todoApp.deploy

Multi-service deployment

The multi-service deployment example shows the deployment of multiple microservices that call each other. The services are deployed in a single Cloud.main block and are a mix of HTTP and native Unison services.

cloud-start/main> run examples.multiService.deploy

Chat app with WebSockets

The chat app example shows a WebSockets based service.

cloud-start/main> run examples.chat.deploy

Serving a static page from Blob storage

The static page example shows how to serve a simple static page from Blob storage.

cloud-start/main> run examples.servePage.deploy

Daemon service example

The "joke daemon" service is a service that runs continuously in the background and returns a new random joke once per minute.

cloud-start/main> run examples.jokeDaemon.deploy

*Daemons are currently a Unison Cloud paid feature.

Authed service

The auth service example includes user authentication provided by OAuth2 (OpenID Connect).

cloud-start/main> run examples.authDemo.deploy

Blog engine

The official Unison blog engine is a simple way to write and manage a blog. It's published on Unison Cloud.

scratch/main> project.create myUnisonBlog
myUnisonBlog/main> lib.install @unison/blog-engine

Here's an example blog created by our Blog Engine