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:

.> project.create 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 BTree example. BTree 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

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.

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

Here's an example blog created by our Blog Engine