Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
a60f037
Setting up GitHub Classroom Feedback
github-classroom[bot] Aug 25, 2022
9211c98
Git ignore node_modules, .env
blimyj Sep 4, 2022
ac7dd96
Add package-lock.json files to git
blimyj Sep 4, 2022
9f47afd
Merge pull request #2 from CS3219-AY2223S1/main-setup
blimyj Sep 7, 2022
cdbb78d
Add models
howardwhw2 Sep 7, 2022
8fdef6b
Add controller for matching-service
howardwhw2 Sep 8, 2022
1c0fd05
Add matchinit fields
howardwhw2 Sep 8, 2022
dfd78b3
Create basic difficulty selection
Aug 30, 2022
36b233c
Modify difficulty selection to support selecting multiple difficulty …
blimyj Aug 30, 2022
8239fa7
Create countdown timer for finding match
blimyj Sep 4, 2022
9565e4e
Minor change to webpage layout
blimyj Sep 4, 2022
afc7e3b
Change logic to display finding match text
blimyj Sep 4, 2022
eb119a5
Add socketio to index.js
blimyj Sep 4, 2022
0d363db
Temporary commit, trying to get socketIO client to conect to server, …
blimyj Sep 5, 2022
74ba12c
Integrate socketIO with server and frontend client
blimyj Sep 5, 2022
a82102f
Add functionality to redirect to dynamic Room Page on matchSuccess
blimyj Sep 12, 2022
a3436cf
Add functionality to handle matchSuccess
blimyj Sep 12, 2022
40f6a30
Add functionality to leave room
blimyj Sep 12, 2022
0041847
Add client matching
howardwhw2 Sep 12, 2022
f4fd4de
Remove unused line
howardwhw2 Sep 12, 2022
9202601
FR1.2/1.3: FindUserByUserName and checkIfUserExists methods
Johnson-Yee Sep 12, 2022
98ead3a
FR1.3: Constants required e.g. BCRYPT_COST and JWT related constants
Johnson-Yee Sep 12, 2022
fc35f7a
FR1.2/1.3: Signup to check if user already exists and Authentication …
Johnson-Yee Sep 12, 2022
3f5d42f
FR1.3: findUser and checkIfUserExists Methods on repo layer
Johnson-Yee Sep 12, 2022
1fecfcb
FR1.3: Front end changes for sign in page
Johnson-Yee Sep 12, 2022
f459a43
Add timeout
howardwhw2 Sep 19, 2022
cd8ba86
Merge branch 'feature/match-session-FR2.2' into ms-leave-room-FR2.5
blimyj Sep 19, 2022
6b60f63
Integrate matching service backend & frontend
blimyj Sep 19, 2022
ecf157d
FR1.5 Blacklist token w/ Redis
Johnson-Yee Sep 20, 2022
54c66d4
Merge pull request #4 from CS3219-AY2223S1/ms-leave-room-FR2.5
blimyj Sep 20, 2022
a74c1c4
Merge branch 'main' of https://github.com/CS3219-AY2223S1/cs3219-proj…
Johnson-Yee Sep 20, 2022
74c5e54
FR-1.2 - 1.5: Commiting package.json files
Johnson-Yee Sep 20, 2022
e2feaea
Merge pull request #5 from CS3219-AY2223S1/feature/user-service-FR1.2…
Johnson-Yee Sep 20, 2022
d343c6f
Completion of User-Service w/ Navbar
Johnson-Yee Oct 2, 2022
ad37d09
Add exit queue
howardwhw2 Oct 4, 2022
4564bc5
Merge pull request #7 from CS3219-AY2223S1/feature/user-service-FR1.2…
Johnson-Yee Oct 9, 2022
afd40b5
Merge pull request #8 from CS3219-AY2223S1/feature/disconnect-exit-queue
howardwhw2 Oct 12, 2022
f7c46d1
Initialise question-service
blimyj Oct 4, 2022
d93b1c5
Create socket.io rooms for matched clients
blimyj Oct 8, 2022
388d9b9
Add functionality to fetch random question and send to frontend
blimyj Oct 8, 2022
4768432
Add functionality to display question data on frontend
blimyj Oct 8, 2022
a8a2ad9
Hardcode roomId for demo
blimyj Oct 9, 2022
51cf8b9
Use uuid to generate roomId
blimyj Oct 12, 2022
33a5f7e
Add more questions to question-service
blimyj Oct 12, 2022
3fed2f2
Collaboration Service - Initial set-up w/ real-time code editor and f…
Johnson-Yee Oct 14, 2022
aced9e3
Passing in parameter from matching service for collab service
Johnson-Yee Oct 14, 2022
19cde15
Remove unnecessary comments
blimyj Oct 15, 2022
d98a11b
Merge pull request #9 from CS3219-AY2223S1/question-service
blimyj Oct 15, 2022
692b9fd
Merge branch 'main' of https://github.com/CS3219-AY2223S1/cs3219-proj…
Johnson-Yee Oct 15, 2022
ff0d5ab
Merge pull request #10 from CS3219-AY2223S1/collaboration-service-cod…
Johnson-Yee Oct 15, 2022
619f4b8
Add chat service
howardwhw2 Oct 15, 2022
11b53d9
Merge branch 'main' into feature/chat-service
howardwhw2 Oct 15, 2022
07a8b29
Merge branch 'main' into feature/chat-service
howardwhw2 Oct 15, 2022
9b598e1
Integrate messaging service
howardwhw2 Oct 15, 2022
5365d98
Fix chat bug
howardwhw2 Oct 19, 2022
f460ee2
add persistent chat
howardwhw2 Oct 20, 2022
e99419b
Update message css
howardwhw2 Oct 20, 2022
dae0cf0
Change matchfail contents
howardwhw2 Oct 20, 2022
fa77f65
Merge pull request #13 from CS3219-AY2223S1/feature/chat-service
howardwhw2 Oct 20, 2022
476c832
Temporary fix for navbar - signup and login
Johnson-Yee Oct 20, 2022
839fe07
Fix for code persistence on refresh
Johnson-Yee Oct 20, 2022
7536f0f
Merge pull request #18 from CS3219-AY2223S1/collab-code-persistent-on…
Johnson-Yee Oct 21, 2022
3ae27cd
Add .env and CD for frontend
howardwhw2 Nov 6, 2022
2f11fb7
Fix path
howardwhw2 Nov 6, 2022
abcc88c
remove new line
howardwhw2 Nov 6, 2022
e551aa5
Remove file
howardwhw2 Nov 6, 2022
df4cfdb
Recreate file
howardwhw2 Nov 6, 2022
612ecd3
change branch
howardwhw2 Nov 6, 2022
46cb8dd
Remove CD
howardwhw2 Nov 6, 2022
e494349
Add CD
howardwhw2 Nov 6, 2022
766577c
rename extension
howardwhw2 Nov 6, 2022
d4149df
Update frontend-CD.yml
howardwhw2 Nov 6, 2022
959b7b0
remove new line
howardwhw2 Nov 6, 2022
004403f
Update frontend-CD.yml
howardwhw2 Nov 6, 2022
c03e917
Update frontend-CD.yml
howardwhw2 Nov 6, 2022
7d7a35a
Add CD
howardwhw2 Nov 6, 2022
59ecd57
Make sure token is verified
Johnson-Yee Nov 7, 2022
3154be0
Add mongo seeding
howardwhw2 Nov 7, 2022
e839c7a
Add CI for chat service
howardwhw2 Nov 8, 2022
564ab45
Update CD
howardwhw2 Nov 8, 2022
d4290d8
Made styling changes to RoomPage, DifficultyPage & FindingMatchPage
blimyj Nov 8, 2022
79539c1
update CI branch
howardwhw2 Nov 8, 2022
68e3cd2
Merge pull request #19 from CS3219-AY2223S1/feature/CI/CD
howardwhw2 Nov 8, 2022
3843a79
Update docker-compose.yml
howardwhw2 Nov 8, 2022
28ebb68
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
62887f5
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
98df274
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
2e8c5da
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
9bfb6d9
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
7857e65
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
78e8e49
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
69916c9
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
6ec8aab
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
0f90dcf
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
989a45e
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
8f5ce42
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
e00c329
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
1f3b3c9
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
23c3f86
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
3a67671
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
de7b596
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
bb00750
Update repository.js
howardwhw2 Nov 8, 2022
07def8b
Update redis.js
howardwhw2 Nov 8, 2022
832cf4e
update cd
howardwhw2 Nov 8, 2022
aeb847b
Add minor changes to RoomPage & DifficultyPage
blimyj Nov 8, 2022
56f13d6
Edit CD
howardwhw2 Nov 8, 2022
5847827
Update CD
howardwhw2 Nov 8, 2022
c50e4c6
Update CI.yml
howardwhw2 Nov 8, 2022
a121a89
Update CD
howardwhw2 Nov 8, 2022
91715f8
Update chatservice-CD.yml
howardwhw2 Nov 8, 2022
a5dc377
Update question.json
howardwhw2 Nov 8, 2022
08567f5
Update .gitignore
howardwhw2 Nov 8, 2022
b0a9c60
Delete .env
howardwhw2 Nov 8, 2022
0896028
Removal of routes such as about page and home page
Johnson-Yee Nov 8, 2022
b3aaca8
Front end enhancements such as login page, signup page and password c…
Johnson-Yee Nov 8, 2022
c4a0912
Merge pull request #20 from CS3219-AY2223S1/feature/CI/CD
howardwhw2 Nov 8, 2022
acf921a
Merge branch 'main' of https://github.com/CS3219-AY2223S1/cs3219-proj…
Johnson-Yee Nov 8, 2022
f7aece4
Merge pull request #21 from CS3219-AY2223S1/frontend-user-enhancement
Johnson-Yee Nov 8, 2022
8fb512c
Add CI Tests for Question Service & to Github Workflow
blimyj Nov 8, 2022
88e10fe
Minor fix to Github Workflow
blimyj Nov 8, 2022
fe6dc30
Minor fix to Github Workflow
blimyj Nov 8, 2022
6bf26b3
Minor fix to Github Workflow
blimyj Nov 8, 2022
c258e0c
Minor fix to Github Workflow
blimyj Nov 8, 2022
dd87ae9
Add mocha package
blimyj Nov 8, 2022
5dd8db4
Minor fix to Github Workflow
blimyj Nov 8, 2022
a80a79c
Minor fix to Github Workflow
blimyj Nov 8, 2022
ea74f33
Minor fix to Github Workflow
blimyj Nov 8, 2022
f558736
Minor fix to Github Workflow
blimyj Nov 8, 2022
0985c29
Update README
howardwhw2 Nov 8, 2022
59bb2bd
Minor fix to Github Workflow
blimyj Nov 8, 2022
97c4450
Minor fix to Github Workflow
blimyj Nov 8, 2022
cee4f90
Minor fix to Github Workflow
blimyj Nov 8, 2022
f69f5d5
Minor Fix to Github Workflow
blimyj Nov 8, 2022
c6e31b7
Minor fix to Github Workflow
blimyj Nov 8, 2022
62d39a9
Minor fix to Github Workflow
blimyj Nov 8, 2022
1dff0da
Minor Fix to Github Workflow
blimyj Nov 8, 2022
ab3e020
Reduce font size of send button by 2px
blimyj Nov 8, 2022
0687e79
Merge branch 'main' into frontend-styling
blimyj Nov 8, 2022
652ae70
Adding CI test cases for user-service with redis
Johnson-Yee Nov 8, 2022
e2efa52
Bugfix CI file
Johnson-Yee Nov 8, 2022
25beee0
Fix syntax error
Johnson-Yee Nov 8, 2022
d27041d
Merge branch 'user-collab-ci' of https://github.com/CS3219-AY2223S1/c…
Johnson-Yee Nov 8, 2022
628e5dc
Revert back to original redis
Johnson-Yee Nov 8, 2022
74a659d
Reformat yaml with yaml extension
Johnson-Yee Nov 8, 2022
6757a64
Fix MongoDb CI URL issue
Johnson-Yee Nov 8, 2022
b5c8cce
Fix redis address issue
Johnson-Yee Nov 8, 2022
de89f9a
Fix redis address
Johnson-Yee Nov 8, 2022
4d8926c
Fix test cases
Johnson-Yee Nov 8, 2022
f715c7d
fix test cases
Johnson-Yee Nov 8, 2022
bc4dc14
Fix Redis Version Issue
Johnson-Yee Nov 8, 2022
4788b9a
Debug User CI
Johnson-Yee Nov 8, 2022
92b4253
Fix Redis await functions
Johnson-Yee Nov 8, 2022
6582ceb
Add Redis Legacy Mode = true
Johnson-Yee Nov 8, 2022
53fd9f5
Try a different redis provider on github actions
Johnson-Yee Nov 8, 2022
c8bef77
Update redis verison
Johnson-Yee Nov 8, 2022
c13ed86
Start redis on setup
Johnson-Yee Nov 8, 2022
5dd914c
Debug redis due to node version
Johnson-Yee Nov 8, 2022
55b4341
Extend Timeout
Johnson-Yee Nov 8, 2022
e911f17
Debug redis
Johnson-Yee Nov 8, 2022
0b28f38
Try 127.0.0.1 instead of localhost
Johnson-Yee Nov 9, 2022
56ed90f
CI Test cases
Johnson-Yee Nov 9, 2022
c5eb335
Add CI to Github Workflow for Matching Service
blimyj Nov 9, 2022
e9114b6
Add mocha package
blimyj Nov 9, 2022
2c2f8c9
Merge pull request #22 from CS3219-AY2223S1/feature/QS/CI/CD
blimyj Nov 9, 2022
5d460c3
Update Dockerfile
howardwhw2 Nov 9, 2022
ccf881a
Adding CI Test Cases Create Users
Johnson-Yee Nov 9, 2022
859ee8f
Merge pull request #23 from CS3219-AY2223S1/frontend-styling
blimyj Nov 9, 2022
8796b42
Merge pull request #26 from CS3219-AY2223S1/feature/MS/CI/CD
blimyj Nov 9, 2022
710fdd2
Update README.md
howardwhw2 Nov 9, 2022
01cf088
Merge branch 'main' of https://github.com/CS3219-AY2223S1/cs3219-proj…
Johnson-Yee Nov 9, 2022
08a4d09
Merge pull request #25 from CS3219-AY2223S1/user-collab-ci-2
Johnson-Yee Nov 9, 2022
3c3242d
Add in support for Javascript, Python, Dockerfile, Go
Johnson-Yee Nov 9, 2022
9d220b8
Update RoomPage.js
howardwhw2 Nov 9, 2022
3875661
Remove commented code
Johnson-Yee Nov 9, 2022
1d3e849
Reduce button size
blimyj Nov 9, 2022
ec18799
Merge pull request #28 from CS3219-AY2223S1/code-editor-syntax-highli…
Johnson-Yee Nov 9, 2022
7d072f1
Merge pull request #29 from CS3219-AY2223S1/frontend-fix
blimyj Nov 9, 2022
38e84d4
ADd changes
howardwhw2 Nov 9, 2022
1a09696
Merge branch 'main' into feature/CI/CD
howardwhw2 Nov 9, 2022
6ab0e23
Update CodeEditor.js
howardwhw2 Nov 9, 2022
53941c2
Merge pull request #27 from CS3219-AY2223S1/feature/CI/CD
howardwhw2 Nov 9, 2022
6bcb49c
Create 2-FinalReport.pdf
howardwhw2 Nov 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
ENV=PROD
JWT_SECRET_KEY=CS3219G2

QN_SERVER_IP = host.docker.internal
QN_SERVER_PORT = 5200

USER_REDIS_IP=host.docker.internal
USER_REDIS_PORT=6380
COLLAB_REDIS_IP=host.docker.internal
COLLAB_REDIS_PORT=6381

QN_MONGO_IP = host.docker.internal
QN_MONGO_PORT = 27019
CHAT_MONGO_IP = host.docker.internal
CHAT_MONGO_PORT = 27018
USER_MONGO_IP = host.docker.internal
USER_MONGO_PORT = 27020

DB_LOCAL_URI= mongodb://127.0.0.1:27017/

REACT_APP_QN_SERVER_IP = host.docker.internal
REACT_APP_QN_SERVER_PORT = 5200
REACT_APP_USER_SERVER_IP = host.docker.internal
REACT_APP_USER_SERVER_PORT = 8000
REACT_APP_MATCH_SERVER_IP = host.docker.internal
REACT_APP_MATCH_SERVER_PORT = 8001
REACT_APP_COLLAB_SERVER_IP = host.docker.internal
REACT_APP_COLLAB_SERVER_PORT = 8002
REACT_APP_CHAT_SERVER_IP = host.docker.internal
REACT_APP_CHAT_SERVER_PORT = 8005
89 changes: 89 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
ENV: PROD
CHAT_MONGO_IP: 127.0.0.1
CHAT_MONGO_PORT: 27017
USER_REDIS_PORT: 6379
USER_REDIS_IP: 127.0.0.1
USER_MONGO_IP: 127.0.0.1
USER_MONGO_PORT: 27017

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3

strategy:
matrix:
node-version: ["18.x"]
mongodb-version: ["6.0"]
redis-version: [4]

steps:
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}

- run: npm ci
working-directory: chat-service

- run: npm run build --if-present
working-directory: chat-service

- run: npm test
working-directory: chat-service

- run: npm ci
working-directory: question-service

- run: npm run seed --if-present
working-directory: question-service

- run: npm run build --if-present
working-directory: question-service

- run: npm test
working-directory: question-service

- run: npm ci
working-directory: matching-service

- run: npm run build --if-present
working-directory: matching-service

- run: npm test
working-directory: matching-service
env:
CI: true

- run: npm ci
working-directory: user-service

- run: npm run build --if-present
working-directory: user-service

- run: npm test
working-directory: user-service
env:
CI: true
44 changes: 44 additions & 0 deletions .github/workflows/chatservice-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ChatService CD

on:
push:
branches: [ main ]
paths:
- chat-service/**
- .github/workflows/chatservice-CD.yml


jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: setup env
working-directory: chat-service
run: |
echo 'ENV= PROD' >> .env
echo 'MONGO_IP= ${{secrets.CHAT_MONGO_IP}}' >> .env
echo 'MONGO_PORT= ${{secrets.CHAT_MONGO_PORT}}' >> .env
echo 'DB_LOCAL_URI= mongodb://127.0.0.1:27017/' >> .env
cat .env
ls -a
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/chatservice:latest
context: "{{defaultContext}}:chat-service"
32 changes: 32 additions & 0 deletions .github/workflows/collabservice-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CollaborationService CD

on:
push:
branches: [ main ]
paths:
- collaboration-service/**
- .github/workflows/collabservice-CD.yml

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/collabservice:latest
context: "{{defaultContext}}:collaboration-service"
32 changes: 32 additions & 0 deletions .github/workflows/frontend-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Frontend CD

on:
push:
branches: [ main ]
paths:
- frontend/**
- .github/workflows/frontend-CD.yml

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/frontend:latest
context: "{{defaultContext}}:frontend"
32 changes: 32 additions & 0 deletions .github/workflows/matchservice-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: MatchService CD

on:
push:
branches: [ main ]
paths:
- matching-service/**
- .github/workflows/matchservice-CD.yml

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/matchservice:latest
context: "{{defaultContext}}:matching-service"
32 changes: 32 additions & 0 deletions .github/workflows/questionseed-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: QuestionSeed CD

on:
push:
branches: [ main ]
paths:
- question-seed/**
- .github/workflows/questionseed-CD.yml

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/questionseed:latest
context: "{{defaultContext}}:question-seed"
32 changes: 32 additions & 0 deletions .github/workflows/questionservice-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: QuestionService CD

on:
push:
branches: [ main ]
paths:
- question-service/**
- .github/workflows/questionservice-CD.yml

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/questionservice:latest
context: "{{defaultContext}}:question-service"
32 changes: 32 additions & 0 deletions .github/workflows/userservice-CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: UserService CD

on:
push:
branches: [ main ]
paths:
- user-service/**
- .github/workflows/userservice-CD.yml

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: cs3219g2/userservice:latest
context: "{{defaultContext}}:user-service"
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.env

frontend/node_modules/*
frontend/.env

matching-service/node_modules/*
matching-service/.env

collaboration-service/node_modules/*
collaboration-service/.env

user-service/node_modules/*
user-service/.env

chat-service/node_modules/*
chat-service/.env

question-service/node_modules/*
question-service/question-service-mongodb/seed-mongodb/node_modules/*
question-service/question-service-mongodb/data/*
question-service/question-service-mongodb/log/*
question-service/.env

.env
Binary file added 2-FinalReport.pdf
Binary file not shown.
Loading