samanbayaka 0.0.14 → 0.0.15

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 CHANGED
@@ -46,7 +46,8 @@ Additionally, OpenObserve is used to view logs and telemetry.
46
46
  #### Environment variables
47
47
  To configure all required environment variables, create a Bash file:
48
48
  ```bash
49
- sudo nano /etc/logrotate.d/sbk.sh
49
+ source /etc/profile.d/sbk.sh
50
+
50
51
  ```
51
52
  Paste this:
52
53
  ```bash
@@ -250,7 +251,7 @@ The Gateway is a critical service that exposes all endpoints as REST APIs. At le
250
251
  ```bash
251
252
  mkdir gateway
252
253
  cd gateway
253
- npm init -y
254
+ pnpm init
254
255
  pnpm install samanbayaka
255
256
  touch index.mjs
256
257
  ```
@@ -265,7 +266,7 @@ await sbk.loadGatewayService()
265
266
  ```bash
266
267
  mkdir <your_service_name>
267
268
  cd <your_service_name>
268
- npm init -y
269
+ pnpm init
269
270
  pnpm install samanbayaka
270
271
  touch index.mjs
271
272
  ```
@@ -274,7 +275,7 @@ A feature service, such as `hello`, can be created as follows:
274
275
  ```bash
275
276
  mkdir hello
276
277
  cd hello
277
- npm init -y
278
+ pnpm init
278
279
  pnpm install samanbayaka
279
280
  touch index.mjs
280
281
  ```
@@ -325,7 +326,7 @@ await sbk.loadFeatureService({
325
326
  ```bash
326
327
  mkdir <your_service_name>-<type>-<topic>
327
328
  cd <your_service_name>-<type>-<topic>
328
- npm init -y
329
+ pnpm init
329
330
  pnpm install samanbayaka
330
331
  touch index.mjs
331
332
  ```
@@ -333,7 +334,7 @@ An auxiliary service, such as a `producer` that publishes messages to the `STUDE
333
334
  ```js
334
335
  mkdir producer-kafka-student
335
336
  cd producer-kafka-student
336
- npm init -y
337
+ pnpm init
337
338
  pnpm install samanbayaka
338
339
  touch index.mjs
339
340
  ```
@@ -365,7 +366,7 @@ rest: false
365
366
  ```bash
366
367
  mkdir <your_service_name>-<type>-<topic>-<group>
367
368
  cd <your_service_name>-<type>-<topic>-<group>
368
- npm init -y
369
+ pnpm init
369
370
  pnpm install samanbayaka
370
371
  touch index.mjs
371
372
  ```
@@ -373,7 +374,7 @@ An auxiliary service, such as a `consumer` that subscribe messages from the `STU
373
374
  ```js
374
375
  mkdir producer-kafka-student-junior
375
376
  cd producer-kafka-student-junior
376
- npm init -y
377
+ pnpm init
377
378
  pnpm install samanbayaka
378
379
  touch index.mjs
379
380
  ```
@@ -421,7 +422,7 @@ You can also run the demo service to better understand how microservices work in
421
422
  ```bash
422
423
  mkdir demo
423
424
  cd demo
424
- npm init -y
425
+ pnpm init
425
426
  pnpm install samanbayaka
426
427
  touch demo.mjs
427
428
  ```
package/commit-hash.mjs CHANGED
@@ -1 +1 @@
1
- export const COMMIT_HASH = '782e7c8';
1
+ export const COMMIT_HASH = '2205c3b';
@@ -24,7 +24,7 @@ const CONFIG_PATH = process.env.SBK_CONFIG_PATH // Environment variable of conf
24
24
  /**
25
25
  * Project absolute path
26
26
  */
27
- const ABSOLUTE_PATH = path.join(__filename.split('samanbayaka')[0], "samanbayaka")
27
+ const ABSOLUTE_PATH = path.join(__filename.split('/samanbayaka/')[0], "samanbayaka")
28
28
 
29
29
 
30
30
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samanbayaka",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Moleculer Gateway service with kafka transporter",
5
5
  "homepage": "https://gitlab.com/dalal.suvendu/samanbayaka#readme",
6
6
  "bugs": {