#Can i know how to create an Express App using cloudflare workers

11 messages · Page 1 of 1 (latest)

void echo
#

Iam new to workers as i can see the workers are pro honon kind of thing
I would love to explore hono also but for now can i know if there is any blog or video sources to know how to build an backend uding express and cloudflare workers

gloomy nebula
#

Express isn't really for Workers, it's for a server. This is a serverless world where things run on invocation rather than all the time

Hono is a good alternative

void echo
#

Ok is there any service from Cloudfare from which I can build backends and deploy them

solemn rapids
#

No

void echo
#

can i even deploy a backend on cloudfare

solemn rapids
#

Depends what you mean by a backend. If you are asking to run something that is always listening on a port then no. But if you are looking to run serverless as your backend then yes

chilly spindle
void echo
chilly spindle
#

afaik express uses node apis like http and https which are not available in the workers platform, so you can't deploy those express apps directly using wrangler, even with the latest nodejs_compat_v2 flag. see

The Cloudflare Blog

Workers now supports more NPM packages and Node.js APIs using an overhauled hybrid compatibility layer.

Cloudflare Docs

Node.js APIs available in Cloudflare Workers

#

you would have to migrate your express app to something like hono which is able to target the workers platform.

void echo
#

Thank you