Skip to content

Commit f11e916

Browse files
committed
add gh workflow for FE
2 parents 4824422 + 88dcc9e commit f11e916

Some content is hidden

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

81 files changed

+13642
-7970
lines changed

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
/ApiGatewayService/javascript
1616
/ApiGatewayService/node_modules
1717
/backend/javascript
18+
/CollabService/javascript
19+
/CollabService/node_modules
20+
/ChatService/node_modules
21+
/ChatService/javascript
1822
/.pnp
1923
.pnp.js
2024

@@ -26,7 +30,8 @@
2630
/frontend/build
2731
/backend/build
2832
/QuestionService/build
29-
33+
/CollabService/build
34+
/ChatService/build
3035
# misc
3136
.DS_Store
3237
.env
@@ -40,5 +45,5 @@ npm-debug.log*
4045
yarn-debug.log*
4146
yarn-error.log*
4247

43-
# IDE files
48+
# IDE metadata
4449
/*/.idea/

ApiGatewayService/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM node:14
55
WORKDIR /usr/src/api-gateway
66

77
# Copy package.json and package-lock.json to the working directory
8-
COPY package*.json ./
8+
COPY package.json ./
99

1010
# Install app dependencies
1111
RUN npm install

ApiGatewayService/src/index.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import express from 'express';
2-
import httpProxy from 'http-proxy';
3-
import cors from 'cors';
1+
import express from "express";
2+
import httpProxy from "http-proxy";
3+
import cors from "cors";
44
// import http from 'http';
55
// import { Server } from 'socket.io';
66

@@ -15,7 +15,7 @@ app.use(cors());
1515
// origin: '*',
1616
// },
1717
// path: 'ws'
18-
// });
18+
// });
1919

2020
// Define routes for each backend service for local development
2121
// app.use('/questionservice', (req, res) => {
@@ -35,22 +35,23 @@ app.use(cors());
3535
// });
3636

3737
//Define routes for each backend service for production/docker containers
38-
app.use('/questionservice', (req, res) => {
39-
proxy.web(req, res, { target: 'http://question-service:3002' });
38+
app.use("/questionservice", (req, res) => {
39+
proxy.web(req, res, { target: "http://question-service:3002" });
4040
});
4141

42-
app.use('/authservice', (req, res) => {
43-
proxy.web(req, res, { target: 'http://auth-service:3003' });
42+
app.use("/authservice", (req, res) => {
43+
proxy.web(req, res, { target: "http://auth-service:3003" });
4444
});
4545

46-
app.use('/userservice', (req, res) => {
47-
proxy.web(req, res, { target: 'http://user-service:3004' });
46+
app.use("/userservice", (req, res) => {
47+
proxy.web(req, res, { target: "http://user-service:3004" });
4848
});
4949

50-
app.use('/matchingservice', (req, res) => {
51-
proxy.web(req, res, { target: 'http://matching-service:3005' });
50+
app.use("/matchingservice", (req, res) => {
51+
proxy.web(req, res, { target: "http://matching-service:3005" });
5252
});
53+
5354
// Start the server
5455
app.listen(3001, () => {
55-
console.log('API Gateway listening on port 3001');
56-
});
56+
console.log("API Gateway listening on port 3001");
57+
});

ApiGatewayService/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"skipLibCheck": true
1010
},
1111
"include": ["./**/*.ts"],
12-
"exclue": ["node_modules"]
12+
"exclude": ["node_modules"]
1313
}

AuthService/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM node:14
55
WORKDIR /usr/src/auth-service
66

77
# Copy package.json and package-lock.json to the working directory
8-
COPY package*.json ./
8+
COPY package.json ./
99

1010
# Install app dependencies
1111
RUN npm install

0 commit comments

Comments
 (0)