Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danbugs/slightjs-dapr-poc


https://github.com/danbugs/slightjs-dapr-poc

Last synced: about 1 month ago
JSON representation

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)