Build Apps

This section describes how CCF applications can be developed and deployed to a CCF network.

Tip

The ccf-app-template repository can be used to quickly build and run a sample CCF application and provides a minimal template to create new CCF apps.

Applications can be written in JavaScript/TypeScript or C++. An application consists of a collection of endpoints that can be triggered by Users. Each endpoint can define an API Schema to validate user requests. Native applications can also be written in Rust using an experimental interface, which exposes a reduced API and does not support API schemas.

These endpoints can read or mutate the state of a unique Key-Value Store that represents the internal state of the application. Applications define a set of Maps (see Key-Value Store How-To), mapping from a key to a value. When an application endpoint is triggered, the effects on the Store are committed atomically.

For CCF release cadence, compatibility commitments and migration guides, see Releases and Upgrades.

Get Started

Go from a fresh machine to a running CCF application.

Install CCF on Linux.

Run a CCF application in a sandbox environment.

Write an Application

Write, build and package a CCF application in C++.

Write a CCF application in TypeScript using ccf-app.

Write a native CCF application in Rust (experimental).

Package and deploy JavaScript/TypeScript application bundles.

Log messages from a CCF application.

Authenticate users of a CCF application.

Access application state transactionally through the key-value store.

Reference

Consult the C++ API reference.

Consult the Rust API reference (experimental).

Use CCF cryptographic APIs.