From 3a80f01f993cbfa78781cfb6337f03d93a160c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20Ant=C3=B4nio=20Farias=20Machado?= Date: Sat, 13 May 2023 09:34:56 -0300 Subject: [PATCH] chore(broker): shell script runner for app --- backend/services/mochi/README.md | 4 +++- backend/services/mochi/cmd/run.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 backend/services/mochi/cmd/run.sh diff --git a/backend/services/mochi/README.md b/backend/services/mochi/README.md index 06c5331..9eb74aa 100644 --- a/backend/services/mochi/README.md +++ b/backend/services/mochi/README.md @@ -1,3 +1,5 @@ -This broker is an implementation of mochi. I had to fork it to customize CONNACK packet userProperty. +This broker is an implementation of mochi. I've to forked it to customize CONNACK packet userProperty, although mochi lib might have a better approach to do it. + +To run this project you might have Go compiler in your machine, and inside cmd folder there is a run.sh script, which runs the project with the right arguments; also inside the same folder is the auth.json file, that carries configs of RBAC. ![img.png](img.png) \ No newline at end of file diff --git a/backend/services/mochi/cmd/run.sh b/backend/services/mochi/cmd/run.sh new file mode 100644 index 0000000..186907d --- /dev/null +++ b/backend/services/mochi/cmd/run.sh @@ -0,0 +1 @@ +go run . -path auth.json