Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Deploy An Express App Deploy an Express.js application on Cloudflare Workers

A step-by-step tutorial for deploying an Express.js application on Cloudflare Workers using TypeScript and a D1 database to build a CRUD-capable Members Registry API.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Deploy An Express App Deploy an Express.js application on Cloudflare Workers

A step-by-step tutorial for deploying an Express.js application on Cloudflare Workers using TypeScript and a D1 database to build a CRUD-capable Members Registry API.

When To Use

Use when you need to deploy a Node.js Express application to the Cloudflare Workers runtime and integrate it with a D1 SQL database for CRUD operations.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-deploy-an-express-app-index-js-application-on-cloudflare-workflow-guide.mdA tutorial guide detailing the steps to deploy an Express.js application on Cloudflare Workers.Questions about a tutorial guide detailing the steps to deploy an Express.js application on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl.textA step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers using the Cloudflare CLI.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers using the Clo...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-2.textA step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers using the Cloudflare CLI.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers using the Clo...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-3.textThe pnpm command used to initialize a new Express.js application project on Cloudflare Workers.Exact payloads, commands, or snippets shown in The pnpm command used to initialize a new Express.js application project on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-4.textA text-based guide outlining the steps to deploy an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in A text-based guide outlining the steps to deploy an Express.js application to Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-5.textThe shell commands required to install express and its type definitions for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install express and its type definitions for a Cloudflare Workers project.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-6.textThe shell commands required to install express and its type definitions for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install express and its type definitions for a Cloudflare Workers project.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-7.textThe shell commands required to install express and its type definitions using pnpm for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install express and its type definitions using pnpm for a Cloudflare Workers project.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-8.textA text-based guide and command sequence for deploying an Express.js application to Cloudflare Workers using Bun.Exact payloads, commands, or snippets shown in A text-based guide and command sequence for deploying an Express.js application to Cloudflare Workers using Bun.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-9.textA wrangler.toml configuration file specifying compatibility flags and environment settings for deploying an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file specifying compatibility flags and environment settings for deploying an Express.j...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-10.textA configuration file specifying the nodejs_compat compatibility flag required to run an Express.js application on Cloudflare Workers.Exact payloads, commands, or snippets shown in A configuration file specifying the nodejscompat compatibility flag required to run an Express.js application on Clou...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-11.textA command to create a Cloudflare D1 database named members-db using the Wrangler CLI.Exact payloads, commands, or snippets shown in A command to create a Cloudflare D1 database named members-db using the Wrangler CLI.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-12.textA wrangler configuration snippet showing how to bind a D1 database to a Cloudflare Worker.Exact payloads, commands, or snippets shown in A wrangler configuration snippet showing how to bind a D1 database to a Cloudflare Worker.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-13.textA wrangler.toml configuration file defining the environment and bindings for deploying an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining the environment and bindings for deploying an Express.js application to C...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-14.textA configuration snippet showing how to bind a D1 database to a Cloudflare Workers Express application using the provided database ID and name.Exact payloads, commands, or snippets shown in A configuration snippet showing how to bind a D1 database to a Cloudflare Workers Express application using the provi...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-15.textSQL commands to drop and recreate a members table with sample data for an Express application on Cloudflare Workers.Exact payloads, commands, or snippets shown in SQL commands to drop and recreate a members table with sample data for an Express application on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-16.textA SQL schema file used to initialize a D1 database for an Express application on Cloudflare Workers.Exact payloads, commands, or snippets shown in A SQL schema file used to initialize a D1 database for an Express application on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-17.textA JavaScript implementation of an Express.js application configured to run on Cloudflare Workers using the httpServerHandler.Exact payloads, commands, or snippets shown in A JavaScript implementation of an Express.js application configured to run on Cloudflare Workers using the httpServer...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-18.textA text-based guide and command sequence for deploying an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in A text-based guide and command sequence for deploying an Express.js application to Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-19.textA JavaScript implementation of an Express.js application configured to run on Cloudflare Workers with database query examples.Exact payloads, commands, or snippets shown in A JavaScript implementation of an Express.js application configured to run on Cloudflare Workers with database query...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-20.textA JavaScript implementation of Express.js API routes including a POST endpoint for creating new members with input validation.Exact payloads, commands, or snippets shown in A JavaScript implementation of Express.js API routes including a POST endpoint for creating new members with input va...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-21.textA JavaScript code snippet demonstrating an Express.js PUT route for updating member details within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating an Express.js PUT route for updating member details within a Cloudflare Worke...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-22.textA JavaScript implementation of an Express.js application configured for deployment on Cloudflare Workers including API route handlers.Exact payloads, commands, or snippets shown in A JavaScript implementation of an Express.js application configured for deployment on Cloudflare Workers including AP...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-23.textA step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-24.textA curl command used to test the deployed Express.js application endpoint on a local Cloudflare Workers development server.Exact payloads, commands, or snippets shown in A curl command used to test the deployed Express.js application endpoint on a local Cloudflare Workers development se...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-25.textA text representation of a JSON response body used in an Express.js application deployed on Cloudflare Workers.Exact payloads, commands, or snippets shown in A text representation of a JSON response body used in an Express.js application deployed on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-26.textA curl command demonstrating how to send a POST request to an Express application running on a Cloudflare Worker.Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to an Express application running on a Cloudflare Worker.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-27.textA text representation of a successful JSON response from an Express.js application running on Cloudflare Workers.Exact payloads, commands, or snippets shown in A text representation of a successful JSON response from an Express.js application running on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-28.textA step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-29.textA curl command demonstrating a PUT request to an Express application running on a Cloudflare Worker.Exact payloads, commands, or snippets shown in A curl command demonstrating a PUT request to an Express application running on a Cloudflare Worker.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-30.textA curl command demonstrating how to send a DELETE request to a local Express application running on Cloudflare Workers.Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a DELETE request to a local Express application running on Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-31.textA wrangler command used to execute a SQL schema file against a remote Cloudflare D1 database.Exact payloads, commands, or snippets shown in A wrangler command used to execute a SQL schema file against a remote Cloudflare D1 database.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-32.textThe npm run deploy command used to deploy an Express.js application to Cloudflare Workers.Exact payloads, commands, or snippets shown in The npm run deploy command used to deploy an Express.js application to Cloudflare Workers.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-33.textTerminal output showing the successful deployment of an Express.js application to Cloudflare Workers using Wrangler.Exact payloads, commands, or snippets shown in Terminal output showing the successful deployment of an Express.js application to Cloudflare Workers using Wrangler.
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-34.textA curl command demonstrating how to request the /api/members endpoint from a deployed Express application on Cloudflare Workers.Exact payloads, commands, or snippets shown in A curl command demonstrating how to request the /api/members endpoint from a deployed Express application on Cloudfla...
examples/workers-deploy-an-express-app-index-js-application-on-cloudflare-cloudfl-35.textA curl command demonstrating how to send a POST request to an Express application deployed on Cloudflare Workers.Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to an Express application deployed on Cloudflare Workers.

What This Skill Covers

  • Deploy an Express.js application on Cloudflare Workers
  • Main sections: Tags, Before you start, Quick start, 1\. Create a new Cloudflare Workers project, 2\. Install Express and dependencies.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/tutorials/deploy-an-express-app/index.md