Skip to content

Commit 41028e3

Browse files
committed
finalizing docker - readme needs image
1 parent aea37a7 commit 41028e3

148 files changed

Lines changed: 2820 additions & 45951 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

examples_new/docker/auth/package-lock.json

Lines changed: 515 additions & 506 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples_new/docker_x/auth/src/__test__/current-user.test.ts renamed to examples_new/docker/auth/src/__test__/current-user.test.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples_new/docker/auth/src/app.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import path from 'path';
21
import express from 'express';
32
import 'express-async-errors';
4-
// import dotenv from 'dotenv';
5-
// dotenv.config({ path: path.resolve(__dirname + '../../.env') });
6-
import { NotFoundError, errorHandler } from '@chronosrx/common';
3+
import cors from 'cors';
4+
import cookieParser from 'cookie-parser';
75
import authRouter from './routes/auth-router';
86
import eventRouter from './routes/event-router';
9-
import cookieParser from 'cookie-parser';
10-
import cors from 'cors';
7+
import { NotFoundError, errorHandler } from '@chronosrx/common';
118

129
import chronosConfig from './chronos-config';
1310
const Chronos = require('@chronosmicro/tracker');
1411
const chronos = new Chronos(chronosConfig);
12+
1513
chronos.propagate();
1614

1715
const app = express();
1816

17+
chronos.docker();
18+
1919
app.use(
2020
cors({
2121
credentials: true,
@@ -24,17 +24,11 @@ app.use(
2424
);
2525
app.use(express.json());
2626
app.use(cookieParser());
27-
chronos.docker();
28-
29-
// app.get('/', (req, res) => {
30-
// console.log('💥 Test Route');
31-
// res.status(200).send({ msg: '💥 Test route' });
32-
// });
3327

3428
app.use('/api/auth', authRouter);
3529
app.use('/events', eventRouter);
3630

37-
app.use('*', (req, res) => {
31+
app.use('*', (_req, _res) => {
3832
throw new NotFoundError();
3933
});
4034

examples_new/docker/auth/src/chronos-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ const chronosConfig = {
2323
notifications: [],
2424
};
2525
export default chronosConfig;
26-
``

examples_new/docker/auth/src/controllers/auth-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const signup = async (req: Request, res: Response) => {
3838
},
3939
};
4040
try {
41-
await axios.post('http://localhost:3005/', {
41+
await axios.post('http://event-bus:3005/', {
4242
event,
4343
});
4444
} catch (err) {
File renamed without changes.

0 commit comments

Comments
 (0)