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, the nodejscompat compatibility flag, and a D1 database for CRUD operations.
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, the nodejscompat compatibility flag, and a D1 database for CRUD operations.
When To Use
Use when you need to migrate a Node.js Express application to the Cloudflare Workers runtime or build a new CRUD API using D1 database integration.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-deploy-an-express-app-js-application-on-cloudflare-workflow-guide.md | A 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-js-application-on-cloudflare-cloudflare-wo.text | The npm command used to scaffold a new Express.js application with D1 database integration via the Cloudflare create command. | Exact payloads, commands, or snippets shown in The npm command used to scaffold a new Express.js application with D1 database integration via the Cloudflare create... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-2.text | The command to initialize a new Express.js application integrated with D1 database using the Cloudflare create command. | Exact payloads, commands, or snippets shown in The command to initialize a new Express.js application integrated with D1 database using the Cloudflare create command. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-3.text | The pnpm command used to scaffold a new Express.js application with D1 database integration on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The pnpm command used to scaffold a new Express.js application with D1 database integration on Cloudflare Workers. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-4.text | A sequence of terminal commands for navigating to the project directory and preparing the Express application for deployment on Cloudflare Workers. | Exact payloads, commands, or snippets shown in A sequence of terminal commands for navigating to the project directory and preparing the Express application for dep... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-5.text | The npm installation commands required to set up express and its type definitions for a Cloudflare Workers project. | Exact payloads, commands, or snippets shown in The npm installation commands required to set up express and its type definitions for a Cloudflare Workers project. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-6.text | The command to install express and its type definitions using yarn for a Cloudflare Workers project. | Exact payloads, commands, or snippets shown in The command to install express and its type definitions using yarn for a Cloudflare Workers project. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-7.text | The shell command to install express and its type definitions using pnpm for a Cloudflare Workers project. | Exact payloads, commands, or snippets shown in The shell command to install express and its type definitions using pnpm for a Cloudflare Workers project. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-8.text | The shell command to install express and its type definitions using the bun package manager for a Cloudflare Workers project. | Exact payloads, commands, or snippets shown in The shell command to install express and its type definitions using the bun package manager for a Cloudflare Workers... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-9.text | A wrangler.toml configuration file containing compatibility flags and project settings for deploying an Express.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file containing compatibility flags and project settings for deploying an Express.js ap... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-10.text | A wrangler.toml configuration file specifying nodejs_compat compatibility flags for deploying an Express application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file specifying nodejscompat compatibility flags for deploying an Express application t... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-11.text | The command to create a Cloudflare D1 database named members-db using the Wrangler CLI. | Exact payloads, commands, or snippets shown in The command to create a Cloudflare D1 database named members-db using the Wrangler CLI. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-12.text | A wrangler configuration snippet showing the D1 database binding for an Express application on Cloudflare Workers. | Exact payloads, commands, or snippets shown in A wrangler configuration snippet showing the D1 database binding for an Express application on Cloudflare Workers. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-13.text | A wrangler.toml configuration file defining database bindings and environment settings for deploying an Express application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining database bindings and environment settings for deploying an Express appli... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-14.text | A configuration snippet showing how to bind a Cloudflare D1 database to a Cloudflare Workers Express application. | Exact payloads, commands, or snippets shown in A configuration snippet showing how to bind a Cloudflare D1 database to a Cloudflare Workers Express application. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-15.text | SQL 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-js-application-on-cloudflare-cloudflare-wo-16.text | A 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-js-application-on-cloudflare-cloudflare-wo-17.text | A 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-js-application-on-cloudflare-cloudflare-wo-18.text | A step-by-step guide and command sequence for deploying an Express.js application to Cloudflare Workers using npm. | 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 npm. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-19.text | A JavaScript implementation of an Express.js application configured to run on Cloudflare Workers using database queries. | Exact payloads, commands, or snippets shown in A JavaScript implementation of an Express.js application configured to run on Cloudflare Workers using database queries. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-20.text | A 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-js-application-on-cloudflare-cloudflare-wo-21.text | A 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-js-application-on-cloudflare-cloudflare-wo-22.text | An Express.js application implementation featuring API routes for managing members using Cloudflare Workers and D1 database bindings. | Exact payloads, commands, or snippets shown in An Express.js application implementation featuring API routes for managing members using Cloudflare Workers and D1 da... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-23.text | The terminal commands required to run the Express application in a development environment using npm. | Exact payloads, commands, or snippets shown in The terminal commands required to run the Express application in a development environment using npm. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-24.text | A curl command used to verify the deployment of an Express.js application on Cloudflare Workers by accessing the members API endpoint. | Exact payloads, commands, or snippets shown in A curl command used to verify the deployment of an Express.js application on Cloudflare Workers by accessing the memb... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-25.text | A text representation of a JSON response body used in a tutorial for deploying an Express.js application on Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of a JSON response body used in a tutorial for deploying an Express.js application on Cloudflar... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-26.text | A curl command demonstrating how to send a POST request to an Express application running on Cloudflare Workers. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to an Express application running on Cloudflare Workers. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-27.text | A text representation of a successful JSON response from an Express application deployed on Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of a successful JSON response from an Express application deployed on Cloudflare Workers. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-28.text | A 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-js-application-on-cloudflare-cloudflare-wo-29.text | A curl command demonstrating a PUT request to an Express application running on a Cloudflare Workers local development server. | Exact payloads, commands, or snippets shown in A curl command demonstrating a PUT request to an Express application running on a Cloudflare Workers local developmen... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-30.text | A 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-js-application-on-cloudflare-cloudflare-wo-31.text | A wrangler command used to execute a SQL schema file against a Cloudflare D1 database. | Exact payloads, commands, or snippets shown in A wrangler command used to execute a SQL schema file against a Cloudflare D1 database. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-32.text | The terminal command used to deploy an Express.js application to Cloudflare Workers using npm. | Exact payloads, commands, or snippets shown in The terminal command used to deploy an Express.js application to Cloudflare Workers using npm. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-33.text | The terminal output showing the successful deployment of an Express.js application to Cloudflare Workers using Wrangler. | Exact payloads, commands, or snippets shown in The terminal output showing the successful deployment of an Express.js application to Cloudflare Workers using Wrangler. |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-34.text | A curl command used to verify the deployment of an Express.js application on Cloudflare Workers by requesting the members API endpoint. | Exact payloads, commands, or snippets shown in A curl command used to verify the deployment of an Express.js application on Cloudflare Workers by requesting the mem... |
examples/workers-deploy-an-express-app-js-application-on-cloudflare-cloudflare-wo-35.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
