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
- Instead of the typical folders & files view, a visual representation of the code is created. Below, it's showing the same repository, but instead of a directory structure, each file and folder as a circle: the circle’s color is the type of file, and the circle’s size represents the size of the file. See live demo <ahref='https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=oslabs-beta%2FChronos'>here</a>.
229
+
- If you want to visualize the way the files in the app are connected, we suggest using this data visualizer. Below, it's showing the same repository, but instead of a directory structure, each file and folder as a circle: the circle’s color is the type of file, and the circle’s size represents the size of the file. See live demo
2. Run `npm run start:electron` to start the electron app.
263
294
3. Run `npm audit fix` or `npm audit fix --force` if prompted
264
-
4. Refer to `Examples` sections below to spin up example applications.
265
-
(Recommended):
266
-
If you have mongo community edition running locally just run `npm run start:microservices` to start populating database with server data(more detail in Microservices Example section).
295
+
4. Refer to `Examples` sections below to spin up example applications.
296
+
(Recommended):
297
+
If you have mongo community edition running locally just run `npm run start:microservices` to start populating database with server data(more detail in Microservices Example section).
Copy file name to clipboardExpand all lines: examples/microservices/README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,14 @@ The Event Bus serves as the intermediary between the backend services, facilitat
35
35
36
36
The common folder maintains code snippets used across each microservice, and is distributed by way of a common NPM package.
37
37
38
-
## To Set Up Database for Storing/Retrieving Metrics
39
38
## Database and .env setup
40
39
41
-
A `sample.env` file, located in the `examples/microservices` folder, has been provided with the necessary enivronmental variables to spin-up the application.
40
+
A `Makefile` file, located in the `examples/microservices` folder, has been provided with the necessary environmental variables to spin-up the application.
42
41
43
-
Create your own `.env` file in the `examples/microservices` folder with the following key/value pairs:
42
+
This file used the community version of `MongoDB`, make sure it's connected before running `npm run start:microservices`.
43
+
It can be replaced by any Mongo_URI.
44
44
45
+
Example:
45
46
-`CHRONOS_DB`: `MongoDB` or `PostgreSQL`
46
47
-`CHRONOS_URI`: The URI to the desired MongoDB or PostgreSQL database where the **Chronos NPM Package** will store recorded metrics. The **Chronos desktop application** retrieves and displays metrics from this database
47
48
-`MONGO_URI_AUTH`: A **MongoDB** URI for the `auth` microservice to use
@@ -53,7 +54,7 @@ Create your own `.env` file in the `examples/microservices` folder with the foll
53
54
54
55
Note: You may run out of space in your database if the services run for an extended period of time. You can temporarily solve this by manually deleting the collection from the database regularly using a UI such as MongoDB Compass.
55
56
56
-
## Start the Microservices
57
+
## Start the example
57
58
58
59
To spin up the example application:
59
60
@@ -63,15 +64,14 @@ To spin up the example application:
Open a web browser to `localhost:5001` to send requests from the client
68
68
69
69
Your microservice health metrics may be viewed in the given `CHRONOS_URI` database, or in the Electron.js desktop application.
70
+
70
71
## Notes
71
72
72
73
Plotly utilizes WebGL to render graphs, but WebGL can support only 8-16 layers simultaneously. Therefore, it is recommended to selectively choose a limited number of layers for optimal performance.
73
74
74
-
75
75
## Additional Documentation
76
76
77
77
For additional information on how Chronos works this example, please review the microservices section in the [Chronos NPM Package README](../../chronos_npm_package/README.md).
0 commit comments