Skip to content

Commit 5adfc36

Browse files
authored
Merge pull request #49 from jolynloh/FE/containerise
Containerise frontend and add landing page
2 parents 7a60038 + c601878 commit 5adfc36

File tree

19 files changed

+513
-59
lines changed

19 files changed

+513
-59
lines changed

backend/question-service/src/controllers/questionController.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export const createImageLink = async (
8080

8181
const uploadPromises = files.map((file) => uploadFileToFirebase(file));
8282
const imageUrls = await Promise.all(uploadPromises);
83-
console.log(imageUrls);
8483
res
8584
.status(200)
8685
.json({ message: "Images uploaded successfully", imageUrls });

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ services:
1919
networks:
2020
- peerprep-network
2121
restart: on-failure
22+
frontend:
23+
image: peerprep/frontend
24+
build: ./frontend
25+
ports:
26+
- 5173:5173
27+
depends_on:
28+
- user-service
29+
- question-service
30+
networks:
31+
- peerprep-network
32+
restart: on-failure
2233

2334
networks:
2435
peerprep-network:

frontend/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

frontend/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /frontend
4+
5+
COPY package*.json ./
6+
7+
RUN npm ci
8+
9+
COPY . .
10+
11+
EXPOSE 5173
12+
13+
CMD ["npm", "run", "dev"]

frontend/package-lock.json

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

0 commit comments

Comments
 (0)