Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cloudflare/workflows-starter

A starter template for Cloudflare Workflows.
https://github.com/cloudflare/workflows-starter

cloudflare durable-execution workers workflows

Last synced: 4 months ago
JSON representation

A starter template for Cloudflare Workflows.

Awesome Lists containing this project

README

        

# Cloudflare Workflows

This is the starter template for Workflows, a durable execution engine built on top of Cloudflare Workers.

* Clone this repository to get started with Workflows
* Read the [Workflows announcement blog](https://blog.cloudflare.com/building-workflows-durable-execution-on-workers/) to learn more about what Workflows is and how to build durable, multi-step applications using the Workflows model.
* Review the [Workflows developer documentation](https://developers.cloudflare.com/workflows/) to dive deeper into the Workflows API and how it works.

## Usage

**Visit the [get started guide](https://developers.cloudflare.com/workflows/get-started/guide/) for Workflows to create and deploy your first Workflow.**

### Example

You can create a project using this template by using `npm create cloudflare@latest`:

```sh
npm create cloudflare@latest workflows-starter -- --template "cloudflare/workflows-starter"
```

This will automatically clone this repository, install the dependencies, and prompt you to optionally deploy:

```sh
╭ Create an application with Cloudflare Step 1 of 3

├ In which directory do you want to create your application?
│ dir ./workflows-tutorial

├ What would you like to start with?
│ category Template from a GitHub repo

├ What's the url of git repo containing the template you'd like to use?
│ repository cloudflare/workflows-starter

├ Cloning template from: cloudflare/workflows-starter

├ template cloned and validated

├ Copying template files
│ files copied to project directory

├ Installing dependencies
│ installed via `npm install`

╰ Application created

╭ Configuring your application for Cloudflare Step 2 of 3

├ Installing @cloudflare/workers-types
│ installed via npm

├ Adding latest types to `tsconfig.json`
│ added @cloudflare/workers-types/2023-07-01

├ Do you want to use git for version control?
│ yes git

├ Initializing git repo
│ initialized git

├ Committing new files
│ git commit

╰ Application configured

╭ Deploy with Cloudflare Step 3 of 3

├ Do you want to deploy your application?
│ no deploy via `npm run deploy`

╰ Done

────────────────────────────────────────────────────────────
🎉 SUCCESS Application created successfully!
```

The [Workflows documentation](https://developers.cloudflare.com/workflows/) contains examples, the API reference, and architecture guidance.

## License

Copyright 2024, Cloudflare. Apache 2.0 licensed. See the LICENSE file for details.