Skip to content

Latest commit

 

History

History
 
 

nodejs-compat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Node.js Compat Example

To run the example on http://localhost:8080

$ ./workerd serve config.capnp

To run using bazel

$ bazel run //src/workerd/server:workerd -- serve ~/cloudflare/workerd/samples/nodejs-compat/config.capnp

To create a standalone binary that can be run:

$ ./workerd compile config.capnp > nodejs-compat

$ ./nodejs-compat

To test:

% curl http://localhost:8080
Hello World