Add CUTOS capability and core API examples
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# CUTOS 4.0 Core API Demo
|
||||
|
||||
The basic CUTOS 4.0 LWA demo. It depends only on `@cutos/core` and does not require an additional Capability SDK or Provider.
|
||||
|
||||
The demo covers the same foundation as the CUTOS 3.x `demo-core-api`, updated for the Promise-first 4.0 API:
|
||||
|
||||
- Runtime version and connection state
|
||||
- Platform, runtime config, box, and device information
|
||||
- Network notifications
|
||||
- Logger levels
|
||||
- Volume read/write
|
||||
- Automatic HTTP proxy configuration and a ping request for verifying cross-origin access
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Development uses CUTOS Mock by default. To connect to a CUTOS Node, set `VITE_CUTOS_BROKER_URL` to its host.
|
||||
|
||||
## Build And Package
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
The packaged `.lwa` file is generated in `release/`.
|
||||
Reference in New Issue
Block a user