Skip to content

Commit 8302d1d

Browse files
committed
change qnhistoryservice port number
1 parent 287657f commit 8302d1d

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ docker-compose down
3131
- Matching Service: http://localhost:3002
3232
- Collab Service: http://localhost:3003
3333
- Code Execution Service: http://localhost:3004
34-
- Question History Service: http://localhost:3005
34+
- Question History Service: http://localhost:3006
3535
- Frontend: http://localhost:5173

backend/matching-service/src/utils/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const QUESTION_SERVICE_URL =
66

77
const QN_HISTORY_SERVICE_URL =
88
process.env.QN_HISTORY_SERVICE_URL ||
9-
"http://qn-history-service:3005/api/qnhistories";
9+
"http://qn-history-service:3006/api/qnhistories";
1010

1111
export const questionService = axios.create({
1212
baseURL: QUESTION_SERVICE_URL,

backend/qn-history-service/.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NODE_ENV=development
2-
SERVICE_PORT=3005
2+
SERVICE_PORT=3006
33

44
ORIGINS=http://localhost:5173,http://127.0.0.1:5173
55

backend/qn-history-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ RUN npm ci
88

99
COPY . .
1010

11-
EXPOSE 3005
11+
EXPOSE 3006
1212

1313
CMD ["npm", "run", "dev"]

backend/qn-history-service/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424

2525
## After running
2626

27-
1. To view Question History Service documentation, go to http://localhost:3005/docs.
27+
1. To view Question History Service documentation, go to http://localhost:3006/docs.
2828

29-
2. Using applications like Postman, you can interact with the Question History Service on port 3005. If you wish to change this, please update the `.env` file.
29+
2. Using applications like Postman, you can interact with the Question History Service on port 3006. If you wish to change this, please update the `.env` file.

backend/qn-history-service/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import app from "./app.ts";
22
import connectDB from "./config/db.ts";
33

4-
const PORT = process.env.SERVICE_PORT || 3005;
4+
const PORT = process.env.SERVICE_PORT || 3006;
55

66
if (process.env.NODE_ENV !== "test") {
77
connectDB()

docker-compose-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ services:
103103
build: ./backend/qn-history-service
104104
environment:
105105
- NODE_ENV=test
106-
- SERVICE_PORT=3005
106+
- SERVICE_PORT=3006
107107
- MONGO_URI_TEST=mongodb://mongo:mongo@test-mongo:27017/
108108
depends_on:
109109
- test-mongo

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ services:
9292
- CHOKIDAR_USEPOLLING=true
9393
env_file: ./backend/qn-history-service/.env
9494
ports:
95-
- 3005:3005
95+
- 3006:3006
9696
depends_on:
9797
- qn-history-service-mongo
9898
- user-service

frontend/src/utils/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios from "axios";
22

33
const usersUrl = "http://localhost:3001/api";
44
const questionsUrl = "http://localhost:3000/api/questions";
5-
const qnHistoriesUrl = "http://localhost:3005/api/qnhistories";
5+
const qnHistoriesUrl = "http://localhost:3006/api/qnhistories";
66

77
export const questionClient = axios.create({
88
baseURL: questionsUrl,

0 commit comments

Comments
 (0)