samanbayaka 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bash/sbk.sh +3 -9
- package/commit-hash.mjs +1 -1
- package/index.mjs +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,10 +80,10 @@ node index.mjs
|
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
#### Create your endpoints as a feature service, such as
|
|
83
|
+
#### Create your endpoints as a feature service, such as hello
|
|
84
84
|
```bash
|
|
85
|
-
mkdir
|
|
86
|
-
cd
|
|
85
|
+
mkdir hello
|
|
86
|
+
cd hello
|
|
87
87
|
npm init -y
|
|
88
88
|
pnpm install samanbayaka
|
|
89
89
|
touch index.mjs
|
|
@@ -93,7 +93,7 @@ Open and edit the index.mjs file as follows
|
|
|
93
93
|
```bash
|
|
94
94
|
import sbk from "samanbayaka"
|
|
95
95
|
await sbk.loadFeatureService.mainBus({
|
|
96
|
-
name: "
|
|
96
|
+
name: "hello",
|
|
97
97
|
version: "v1",
|
|
98
98
|
|
|
99
99
|
actions: {
|
|
@@ -128,7 +128,7 @@ await sbk.loadFeatureService.mainBus({
|
|
|
128
128
|
})
|
|
129
129
|
|
|
130
130
|
```
|
|
131
|
-
Run the service,
|
|
131
|
+
Run the service, hello
|
|
132
132
|
```bash
|
|
133
133
|
node index.mjs
|
|
134
134
|
```
|
package/bash/sbk.sh
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# Environment Variables
|
|
3
|
-
# To set permanent environment variables for all users, create an sbk.sh file in the path /etc/profile.d/
|
|
4
|
-
# Environment Variables will be set after a reboot or execute $source /etc/profile.d/sbk.sh
|
|
5
|
-
###############################################################################
|
|
6
|
-
|
|
7
1
|
##Configurations files path
|
|
8
|
-
export SBK_CONFIG_PATH
|
|
2
|
+
export SBK_CONFIG_PATH=/usr/local/etc/<your_folder>
|
|
9
3
|
|
|
10
4
|
##web server port 8760-8769
|
|
11
5
|
export SBK_PORT=8765
|
|
12
6
|
|
|
13
|
-
##
|
|
14
|
-
export SBK_LOG_LEVEL=
|
|
7
|
+
##Log level allowed values are fatal | error | warn | info | debug | trace
|
|
8
|
+
export SBK_LOG_LEVEL=debug
|
package/commit-hash.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const COMMIT_HASH = '
|
|
1
|
+
export const COMMIT_HASH = '3290420';
|
package/index.mjs
CHANGED
|
@@ -82,6 +82,9 @@ export default {
|
|
|
82
82
|
Errors,
|
|
83
83
|
getConfig,
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Loading Demo
|
|
87
|
+
*/
|
|
85
88
|
loadDemo: async() => {
|
|
86
89
|
const gtWy = {...apiGateway}
|
|
87
90
|
gtWy.settings.routes[0].path = "/api/demo"
|
|
@@ -124,7 +127,7 @@ export default {
|
|
|
124
127
|
},
|
|
125
128
|
|
|
126
129
|
auxBus: async(schema) => {
|
|
127
|
-
|
|
130
|
+
return false
|
|
128
131
|
},
|
|
129
132
|
},
|
|
130
133
|
|