Skip to content

Commit dcf2840

Browse files
committed
changed default ports to 5001
1 parent 77ce10f commit dcf2840

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

examples/microservices/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ To spin up the example application:
6161
2. Run `npm run pkg:install` to install all necessary dependencies
6262
3. Run `npm start`
6363

64-
Open a web browser to `localhost:5000` to send requests from the client
64+
Open a web browser to `localhost:5001` to send requests from the client
6565

6666
Your microservice health metrics may be viewed in the given `CHRONOS_URI` database, or in the Electron.js desktop application.
6767

examples/microservices/auth/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import eventRouter from './routes/event-router';
77
import { NotFoundError, errorHandler } from '@chronosrx/common';
88

99
import chronosConfig from './chronos-config';
10-
const Chronos = require('@chronosmicro/tracker');
10+
const Chronos = require('../../../../chronos_npm_package/chronos.js');
1111
const chronos = new Chronos(chronosConfig);
1212
chronos.propagate();
1313

examples/microservices/auth/src/chronos-config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ const chronosConfig = {
2020

2121
notifications: [],
2222
};
23+
console.log(process.env.CHRONOS_DB)
24+
console.log(process.env.CHRONOS_URI)
2325
export default chronosConfig;

examples/microservices/client-dev/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import react from '@vitejs/plugin-react';
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
server: { open: true, port: 5000 },
7+
server: { open: true, port: 5002 },
88
build: {
99
outDir: '../client/src',
1010
},

examples/microservices/client/src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const express = require('express');
33

4-
const PORT = 5000;
4+
const PORT = 5001;
55

66
const chronosConfig = require('./chronos-config');
77
const Chronos = require('@chronosmicro/tracker');

0 commit comments

Comments
 (0)