![javascript-worker-d80 package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2Fb749e0f1-b7c5-44d0-bb5a-1c0cd647afed_default_icon%2F5d6a5a4887b40a124220c7519056a46e.png&w=96&q=75)
sahbibraham/javascript-worker-d80
Public
wasmer run sahbibraham/javascript-worker-d80
wasmer run sahbibraham/javascript-worker-d80
This is a simple Javascript Service Worker server template running with WinterJS.
This starter's full tutorial is available here.
Usage
Modify the logic of your the Javascript worker in the src/index.js
file.
You can run the JS Service Worker locally with (check out the Wasmer install guide):
wasmer run . --net
[!TIP] You can also run
wasmer run wasmer-examples/gatsby-wasmer-starter --net
to run the published package locally
Open http://localhost:8080 with your browser to see the worker working!
Deploy on Wasmer Edge
The easiest way to deploy your Javascript Worker is to use the Wasmer Edge.
Live example: https://sahbibraham-javascript-worker-d80.wasmer.app/
wasmer deploy
[!NOTE] You will need to change the namespace in
wasmer.toml
to your own namespace and app name inapp.yaml
to your own app name.