dapr-express

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dapr-express

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

24.1 kB

Total Files

39

Last publish

Collaborators

  • zen12