This repository contains a hello world HTTP component, written in TypeScript.
This component:
- Uses TypeScript for its implementation
- Bundles with rslib
![WARN] When building this project, ensure you are using a stable NodeJS release.
Use of node version management tools (ex.
nvmor more newer NVM compatible tools likefnm) are recommended -- a.nvmrcfile is included for easy use.
Building this project relies on the following software:
| Name | Description |
|---|---|
wash |
Wasm Shell controls your [wasmCloud][wasmcloud] host instances and enables building components |
npm |
Node Package Manager (NPM) which manages packages for for the NodeJS ecosystem |
node |
[NodeJS runtime][nodejs] (see .nvmrc for version) |
To get started developing this repository quickly, clone the repo and run npm start:
npm startThis results that the output of the demo.js script is printed to the console.
See package.json for the exact commands being run. But what npm start does is:
npm installto download all dependencies- building the component
- transpiling the component so it can be called from javascript
- running the demo.js script
It uses rslib to bundling the JavaScript together with the dependencies. See the rslib.config.rs file in the example folder for more details.