You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On each microservice in example/microserivces, perform the following steps
18
18
-*Do this for microservices: books, orders, & reverse proxy
19
-
- Install dotenv `npm install dotenv`
20
-
- Create a .env file across each ,microservices and input your own Mongodb Atlast URI for both Microservice_URI and CHRONOS_URI
21
-
-** Reverse Proxy .env file will only require CHRONOS_URI
19
+
- Create a .env file under each microservice folder and input your own Mongodb Atlast URI for Microservice_URI, CHRONOS_URI and ORDER_URI, see example below:
- In each Microservices *chronos-config.js* file, verify that `"mode"` property has a value of `"microservices"`
34
29
35
-
- In each of the chronos-config.js files, import and set URI property in database to the Chronos_URI as shown
36
-
37
-
```
38
-
require('dotenv').config();
39
-
const chronos = require('@chronosmicro/tracker');
40
-
41
-
chronos.use({
42
-
microservice: 'name of microservice e.g books or orders',
43
-
interval: 2000,
44
-
database: {
45
-
type: 'MongoDB'
46
-
URI: process.env.CHRONOS_URI
47
-
},
48
-
notifications: [],
49
-
})
50
30
```
51
31
- **Note: The Initialize Chronos step is already taken care of for you.
32
+
- Inside each microservice directory, install all dependencies using the `npm install`
52
33
- Run `npm run start` in each folder directory
53
-
- To do so, within each microservice directory, install all dependencies using the `npm install`
54
34
- Head over to localhost:3030 to view reverse proxy acting as the frontend of this microservice example
55
35
- Start adding data!
56
36
- Run `npm run both` to start Electron app
57
37
- Add a new application in Chronos app dashboard.
58
38
- The URI should be your CHRONOS_URI
59
39
60
40
61
-
**To test the functionality of Chronos using this sample microservices architecture, you must install the [Chronos node module](https://www.npmjs.com/package/chronos-microservice-debugger3) within each microservice. _It is not pre-installed._ Installation instructions for both the Chronos node module and the Chronos desktop visualizer are below:**
41
+
**To test the functionality of Chronos using this sample microservices architecture, you must have the [Chronos node module](https://www.npmjs.com/package/chronos-microservice-debugger3) within each microservice. This is already included as a dependency therefore there should be no need to install it manually. But if it is missing from the dependency list, the installation instructions for both the Chronos node module and the Chronos desktop visualizer are below:**
0 commit comments