Skip to content

Commit c808ef4

Browse files
author
Rich
committed
Merge branch 'dev' into ESbuilMerge
2 parents 88aa461 + 8cfcbce commit c808ef4

10 files changed

Lines changed: 30 additions & 7 deletions

File tree

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is an example .env file for you to create in order to insert your private URI for /electron
2+
# Your .env file should live in the root directory for the current configuration used in UserModel.ts
3+
MONGO_URI='<MongoDB-URI-for-private-User-DB-here>'

app/components/About/PastContributors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { useStylingContext } from './StylingContext';
33

44
const contributors = [
5-
'Haoyu', 'Eisha', 'Edwin', 'Tyler', 'Snow', 'Taylor', 'Tim', 'Roberto', 'Nachiket', 'Tiffany', 'Bruno', 'Danny', 'Vince',
5+
'Mike', 'Stephen', 'Ted', 'Sofia', 'Haoyu', 'Eisha', 'Edwin', 'Tyler', 'Snow', 'Taylor', 'Tim', 'Roberto', 'Nachiket', 'Tiffany', 'Bruno', 'Danny', 'Vince',
66
'Matt', 'Derek', 'Kit', 'Grace', 'Jen', 'Patty', 'Stella', 'Michael', 'Ronelle', 'Todd',
77
'Greg', 'Brianna', 'Brian', 'Alon', 'Alan', 'Ousman', 'Ben', 'Chris', 'Jenae', 'Tim',
88
'Kirk', 'Jess', 'William', 'Alexander', 'Elisa', 'Josh', 'Troy', 'Gahl', 'Brisa', 'Kelsi',

app/components/About/TeamMembers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useStylingContext } from './StylingContext';
33

4-
const names = ['Mike', 'Stephen', 'Ted', 'Sofia'];
4+
const names = ['Arnold', 'Ashley', 'Pete', 'Rich'];
55

66
const TeamMembers: React.FC = () => {
77
const currentMode = useStylingContext();

electron/models/UserModel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import 'dotenv/config';// Imported dotenv to process env files to protect our URI
12
// Insert the MongoDB URI for your private User database in place of the example URI provided below.
2-
const MONGO_URI = 'mongodb+srv://chronoschild15:Codesmith999@cluster0.abrbjlj.mongodb.net/';
3+
const MONGO_URI = process.env.MONGO_URI;//URI from .env file in electron folder root directory
34

45
const mongoose = require('mongoose');
56

examples/docker/.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# **NOTE**: Ensure that there are no quotes surrounding any of the keys and values.
2+
3+
CHRONOS_DB="MongoDB or PostgreSQL"
4+
CHRONOS_URI="The URI to the desired MongoDB or PostgreSQL database to save health metrics via Chronos"
5+
CHRONOS_GRAFANA_API_KEY=Bearer "[the access token you created in above section (Grafana API Key)]"
6+
7+
MONGO_URI_AUTH="A MongoDB URI for the auth server microservice to use"
8+
MONGO_URI_ITEMS="A MongoDB URI for the items server microservice to use"
9+
MONGO_URI_INVENTORY="A MongoDB URI for the inventory server microservice to use"
10+
MONGO_URI_ORDERS="A MongoDB URI for the orders server microservice to use"
11+
12+
# A random string used to sign and verify JSON Web Tokens used by the auth service - the random string provided will work
13+
JWT_KEY=16a8dcb7e3445392b8124f82a451fb2c1c42a1ad4d599e43ebaf4cbbad8c7d59
14+
JWT_LIFETIME="The time-to-expiration of the JSON Web Token used by the auth service - this is set to `1d` in `sample.env` meaning user authentication is valid for 1 day"

examples/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For additional details on how Chronos works this example, please review the Dock
3939

4040
Peform the following steps in each of the _Auth_, _Items_, _Inventory_, _Orders_, _Client_, and _Event-Bus_ directories
4141

42-
1. Add a `.env` file to each of _Auth_, _Items_, _Inventory_, _Orders_, _Event-Bus_, and _Client_ folders with the following key/value pairs (a `sample.env` file is provided in the `/examples/docker` directory):
42+
1. Add a `.env` file to each of _Auth_, _Items_, _Inventory_, _Orders_, _Event-Bus_, and _Client_ folders with the following key/value pairs (a `.env.example` file is provided in the `/examples/docker` directory):
4343

4444
- **NOTE**: Ensure that there are no quotes surrounding any of the keys and values.
4545

examples/kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ docker build -t backend:1.0 .
8181

8282
2. run `npm start` to start npm server.
8383

84-
3. You should see `🤖 Example app listening on port 1111! chronos_npm_package Server Loaded 🎉` in the terminal.
84+
3. You should see `Example app listening on port 3000! Kubernetes Example Server Loaded` in the terminal.
8585

8686
## Deploy the Cluster
8787

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file serves as a template for the .env file you will be creating while following the README steps.
2+
CHRONOS_GRAFANA_API_KEY=Bearer "<access-token-created-in-step-3-here]>"
3+
CHRONOS_DB="<MongoDB-or-PostgreSQL>"
4+
# The URI to the desired MongoDB or PostgreSQL database to save health metrics via Chronos
5+
CHRONOS_URI="<database-URI-here>"

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"d3": "^7.8.5",
2626
"dat.gui": "^0.7.9",
2727
"docker": "^0.2.14",
28-
"dotenv": "^16.0.3",
28+
"dotenv": "^16.4.7",
2929
"electron-devtools-installer": "^3.2.0",
3030
"electron-fetch": "^1.9.1",
3131
"electron-log": "^5.0.0-beta.23",

0 commit comments

Comments
 (0)