Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danbugs/slightjs-dapr-poc
https://github.com/danbugs/slightjs-dapr-poc
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/danbugs/slightjs-dapr-poc
- Owner: danbugs
- Created: 2023-04-24T18:22:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-24T18:23:11.000Z (over 1 year ago)
- Last Synced: 2024-05-01T17:01:17.470Z (8 months ago)
- Language: JavaScript
- Size: 3.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slightjs-dapr-poc
This is a simple proof of concept for using Dapr with a SlightJS/Slight application.
## Prerequisites
- [Dapr](https://docs.dapr.io/getting-started/install-dapr-cli/)
- [SlightJS](https://github.com/danbugs/slightjs)
- [Slight](https://github.com/danbugs/slight)## Running the application
(1) Start dapr:
```bash
dapr init
```(2) Compile JS to Wasm:
```bash
slightjs ./slightjs_engine.wasm ./index.js ./index.wasm
```(3) Run the application:
```bash
dapr run --app-id slightjs-dapr-poc --app-port 3000 --dapr-http-port 3500 --resources-path ./components -- slight -c ./slightfile.toml run ./index.wasm -l
```> Note: Examples ran on a modified version of `slight` still to be merged into `main` (see more, here: https://github.com/deislabs/spiderlightning/pull/386, and here: https://github.com/deislabs/spiderlightning/pull/390)