mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-01-05 09:20:46 -06:00
Example WASM Component
An example JavaScript WASM component for TrailBase. Feel free to copy and make it your own.
Running in Development
Assuming you have trail installed and in your $PATH, simply run
npm run dev
to start a TrailBase server with the component and a file watcher.
Whenever a file under ./src changes, the watcher will rebuild the component and send a SIGHUP ot the server to reload the component. This will typically take a few seconds.
Limitations
Adding or removing new routes will require restarting the server.