dapr-express
v1.0.0
Published
dapr ingress
Downloads
2
Readme
dapr-express
simple express server with dapr sample
features
plugins architecture:
executors(dapr.invoke, http.proxy, redirect, pubsub, socket, etc)
before after hooks (global and specific paths)
authenticators & authorizers
params parsers / validators
CORS, json, urlencode, form, stream handlers..etc
ratelimiters
..
battery packs included:
healthz & readyz probs, graceful shutdown (localhost:3500/v1.0/shutdown)
http2/3, certz
grpc-grpc
simple & clean & fast
usage
see https://github.com/node-config/node-config#quick-start to set up configs
sample configs https://github.com/giang12/dapr-express/tree/main/config
npm i -g dapr-express
//starting dapr sidecar and dapr-express side by side
dapr run --app-id ingress-app --app-port 8080 --dapr-grpc-port 3500 -- dapr-express
env vars
AuthPath=./plugins/auth
ExecutorsPath=./plugins/executors
HooksPath=./plugins/hooks