Skip to content

bootstraponline/dart-worker-hello-world

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dart hello world for Cloudflare Workers

Your Dart code in index.dart, running on Cloudflare Workers

In addition to Wrangler you will need to install Dart.

Wrangler

To generate using wrangler

wrangler generate projectname https://github.com/cloudflare/dart-worker-hello-world

Further documentation for Wrangler can be found here.

Dart

After installing Dart per the linked instructions above,

cd projectname

# run once to get dependencies
pub get

dart2js -O2 -o index.js index.dart

That will compile your code into index.js, after which you can run wrangler publish to push it to Cloudflare.

For more information on how Dart translates to JavaScript, see the docs for dart2js and the interop guide.

About

Dart hello world for Cloudflare Workers

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%