wt-bundle
Example using This example represents a simple express server that is structured so that:
- Your core server logic requires no changes to run on https://webtask.io or as a stand-alone server
- When building for the webtask platform, any dependencies not available on the platform will be bundled for you
Usage
As a standalone server
npm start
As a webtask
Note: As a pre-requisite to running this example as a webtask, you must have installed and configured wt-cli.
npm run bundle -- --prod --output ./build/webtask.js
wt create --name wt-bundle ./build/webtask.js
# Webtask url will be printed out. Your code is now running as a webtask at that url.