Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger.dev Example with Hono Cloudflare Workers #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hono/cloudflare-workers/hello-world/.dev.vars-example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TRIGGER_SECRET_KEY =
35 changes: 35 additions & 0 deletions hono/cloudflare-workers/hello-world/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# prod
dist/

# dev
.yarn/
!.yarn/releases
.vscode/*
!.vscode/launch.json
!.vscode/*.code-snippets
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/shelf

# deps
node_modules/
.wrangler

# env
.env
.env.production
.dev.vars

# logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# misc
.DS_Store

.trigger
35 changes: 35 additions & 0 deletions hono/cloudflare-workers/hello-world/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Using Trigger.dev with Hono

This is a simple example of a Cloudflare Worker that triggers a 'Hello world' task.

## Prerequisites

```
cp .dev.vars-example .dev.vars
```

## Install

```
npm install
```

## Run

Start the development server:

```
npm run dev
```

Run the CLI `dev` command

```
npx trigger.dev@beta dev
```

## Deploy

```
npm run deploy
```
Loading