Guides
Guides answer “how do I …?” for one task at a time. They assume you know the basic shape of the platform; if you do not yet, do Getting started first, and turn to Concepts when you want the reasons behind a step. Code samples use language tabs (Go, Java, TypeScript, PHP, Rust); pick one once and every page follows.
Building applications on the platform
Section titled “Building applications on the platform”For developers whose application publishes events, receives deliveries, signs users in, or calls the platform API.
| Guide | Use it to |
|---|---|
| Register an application and get credentials | Create the application and its service account, and get a client id and secret. |
| Publish events with the outbox | Write events and dispatch jobs in your own transaction and relay them. |
| Declare definitions in code | Keep event types, connections, subscriptions, roles, pools, scheduled jobs, processes and docs in code and sync them. |
| Receive deliveries and verify signatures | Accept dispatch-job deliveries, verify them and answer correctly. |
| Run work on a schedule | Receive scheduled-job firings, report completion, and fire jobs on demand. |
| Call the platform API as a service account | Get and cache tokens with client credentials and call /api. |
| Use FlowCatalyst as your app’s identity provider | Sign users in with OIDC, keep sessions, and protect web and API routes. |
| Define and check permissions in code | Declare roles and permissions in code, sync them, and check them at runtime. |
| Create users and invitations from your app | Create users and send invitations without the console. |
| Show your application’s own events, jobs and users | Build admin pages on application-scoped reads. |
| Build a customer portal | Sign a client’s customers in through the portal identity plane. |
| Read configuration and secrets from code | Read platform configuration values and reveal secrets, audited. |
| Run an isolated platform for end-to-end tests | Start a throwaway platform for a test suite. |
Field-worker apps
Section titled “Field-worker apps”For apps used by field workers (for example drivers or warehouse staff) on enrolled devices.
| Guide | Use it to |
|---|---|
| Choosing a field library | Pick between the web, WebView, React Native and native Android libraries. |
| Enrol a device and sign in | Enrol a device and sign a worker in with a PIN or badge. |
| Verify field tokens in your backend | Check device-bound field tokens and their proofs. |
| Manage workers, devices, badges and impersonation | Administer the field identity plane. |
| Live job updates for field devices | Push changes to field devices. |
Functions
Section titled “Functions”For code the platform runs for you: webhooks, subscribers and scheduled work without a service of your own.
| Guide | Use it to |
|---|---|
| Write a function | Write a function in TypeScript, Go, Rust or Java. |
| Develop locally with fcdev fn dev | Build, serve, watch and send requests on your machine. |
| Declare endpoints, auth, subscriptions and schedules | Write the describe document. |
| Publish, promote and use aliases | Move versions through environments. |
| Create a dispatch job from a function | Hand work on with fn.dispatch. |
| Call another service with a platform token | Use the host-minted token. |
| Switch on trace logs and read them | Debug a running function with gated traces. |
| Give a function secrets and config | Supply configuration and secrets safely. |
Ingestion
Section titled “Ingestion”For bringing outside data in: files, feeds, queues and HTTP pushes, turned into dispatch jobs or events.
| Guide | Use it to |
|---|---|
| Define, test and go live with an ingestion | Take a first ingestion from definition to live. |
| Accept data over HTTP | Receive pushed data with auth, content rules and rate limits. |
| Definition files and sets for many clients | Manage the same ingestion for many clients. |
| Custom Camel routes | Go beyond the built-in source kinds. |
| Write an extension | Add a new source kind. |
| Troubleshoot ingestion | Find failures, notices and traces. |
| Ingestion under fcdev | Run ingestions locally with fcdev ingest. |
For telling screens that something changed, over server-sent events.
| Guide | Use it to |
|---|---|
| Push from a use case and listen in the browser | Publish a push with the change and subscribe in the client. |
| Topics, rules and tickets | Decide who may listen to what. |
Administering a platform
Section titled “Administering a platform”For platform and client administrators working in the console.
| Guide | Use it to |
|---|---|
| Onboard a client and entitle applications | Add a tenant and give it applications. |
| Users, roles and delegation | Manage users and let client administrators manage their own. |
| Connect an organisation’s SSO | Add an identity provider, email domains and role sync. |
| Find, requeue, redrive, cancel and edit dispatch jobs | Operate on deliveries. |
| Configure pools and connections | Pace and pause delivery. |
| Copy definitions between environments | Export and import definitions. |
| Manage configuration and reveal secrets | Edit platform configuration. |
Local development
Section titled “Local development”For working with fcdev on your own machine.
| Guide | Use it to |
|---|---|
| fcdev day to day | Start, stop, reset, relay an outbox, read logs and upgrade. |
| Add PostGIS to the embedded Postgres | Use PostGIS in a database on the embedded server. |
| Work against a remote platform | Point fcdev fn and fcdev ingest at a shared platform. |
Not finding it?
Section titled “Not finding it?”- The exact shape of something (an endpoint, a claim, an environment variable, an error code) is in Reference.
- Per-language API orientation is in SDKs and libraries.
- Building a whole business service is covered by the application framework.
- Running the platform in production is in Operations.