https://github.com/danbugs/slightjs-dapr-poc
Using SlightJS and Dapr together
https://github.com/danbugs/slightjs-dapr-poc
dapr javascript
Last synced: 4 months ago
JSON representation
Using SlightJS and Dapr together
- Host: GitHub
- URL: https://github.com/danbugs/slightjs-dapr-poc
- Owner: danbugs
- Created: 2023-04-24T18:22:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-24T18:23:11.000Z (about 2 years ago)
- Last Synced: 2025-01-18T13:20:49.648Z (6 months ago)
- Topics: dapr, javascript
- Language: JavaScript
- Homepage:
- 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)