Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 254 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
c714f94
remove initial page
Bransonlj Sep 9, 2023
080a49f
Initialise backend and docker compose
johnbenedictyan Sep 9, 2023
7b3b586
Initialise backend and docker compose
johnbenedictyan Sep 9, 2023
753b30f
Restructure backend folders
johnbenedictyan Sep 9, 2023
7884f88
Merge branch 'master' into CG3-1-initialise-backend
johnbenedictyan Sep 9, 2023
5e7f3c4
Merge pull request #4 from CS3219-AY2324S1/CG3-1-initialise-backend
johnbenedictyan Sep 9, 2023
df8eaa4
create question model, routes, CRUD operation for question-service
Bransonlj Sep 10, 2023
0bb0f1a
add category field to model, add dist to gitignore
Bransonlj Sep 10, 2023
aec80cf
remove extra vider-call-service folder
Bransonlj Sep 10, 2023
def1d21
create question view page and form
Bransonlj Sep 10, 2023
30de4aa
add update and delete question functionality
Bransonlj Sep 10, 2023
e8172ba
add basic css module styling
Bransonlj Sep 10, 2023
d413eed
clean up styling
Bransonlj Sep 10, 2023
10f9f49
Merge pull request #5 from Bransonlj/assignment1-question-service
YZmunchmunch Sep 10, 2023
697259b
Added backend folders, and login template for frontend
YZmunchmunch Sep 11, 2023
f8e8e1b
Merge pull request #10 from YZmunchmunch/master
Bransonlj Sep 11, 2023
903a513
Added register page and connected wth database
YZmunchmunch Sep 11, 2023
e64904b
Added login page and connected with database
YZmunchmunch Sep 11, 2023
bdb27da
Implemented view profile, delete profile, login, logout, and register
YZmunchmunch Sep 11, 2023
31bfc2d
Added update profile, error & success message displays
YZmunchmunch Sep 12, 2023
87ba4cf
Fixed view profile controller routing bug
YZmunchmunch Sep 12, 2023
89b7a41
Merge pull request #12 from YZmunchmunch/master
Bransonlj Sep 12, 2023
f97d6ed
fix registerUser, format styling with prettier
Bransonlj Sep 14, 2023
03da6c4
add navbar, update routing
Bransonlj Sep 14, 2023
92a15e7
add mongoose connection string for dev
Bransonlj Sep 14, 2023
eedf3cc
Merge pull request #13 from Bransonlj/test-userservice
YZmunchmunch Sep 14, 2023
01907f5
initialise matching service
johnbenedictyan Sep 26, 2023
eb52900
add matching page
johnbenedictyan Sep 28, 2023
560a9b0
add match to routes and navbar
johnbenedictyan Sep 28, 2023
f99d700
fix eslint
johnbenedictyan Sep 28, 2023
c7ada30
Add AuthContext file
Sampy147 Sep 28, 2023
08ee2a7
integrate firebase
johnbenedictyan Sep 28, 2023
f95f93f
fix eslint for matching
johnbenedictyan Sep 28, 2023
6b7067b
Added firebase to manage user sessions, and updated the update profil…
Sampy147 Sep 29, 2023
19f9a1c
Reformatted frontend to conform to eslint guidelines
Sampy147 Sep 29, 2023
339f394
Fixed merge conflicts and removed commented lines of code
Sampy147 Sep 29, 2023
0d7d9ea
Reintstated original postgres database for user-service and fixed del…
Sampy147 Oct 1, 2023
39d80b4
Merge pull request #14 from Sampy147/master
Sampy147 Oct 4, 2023
3423244
Update yarnlock
Sampy147 Oct 4, 2023
2bba8c3
Merge pull request #16 from Sampy147/master
Sampy147 Oct 4, 2023
86453ff
update matching service
johnbenedictyan Oct 8, 2023
c751164
initialise socket service
johnbenedictyan Oct 8, 2023
a96d491
updare frontend styling using tailwind
johnbenedictyan Oct 10, 2023
3658f34
initialise single question page
johnbenedictyan Oct 10, 2023
b3e7c08
fix code collaboratino
johnbenedictyan Oct 10, 2023
91be822
initialise role base router discrimination
johnbenedictyan Oct 10, 2023
0407e14
add matching request controller
johnbenedictyan Oct 10, 2023
2f76453
fix services
johnbenedictyan Oct 10, 2023
cc9ab68
update docker compose file
johnbenedictyan Oct 10, 2023
dc17a18
Update matching control panel page with new styling
johnbenedictyan Oct 12, 2023
1c1332b
update use effect dependencies
johnbenedictyan Oct 12, 2023
6f1bb96
update matching control panel
johnbenedictyan Oct 26, 2023
937f805
add frontend component testing
johnbenedictyan Oct 26, 2023
40a7c7c
update matching service with testing
johnbenedictyan Oct 26, 2023
220bfc1
Add history-service
Bransonlj Oct 29, 2023
5aee67a
add update docker compose dev file
johnbenedictyan Oct 30, 2023
030d79e
add update docker compose dev file
johnbenedictyan Oct 30, 2023
70c01c5
Merge branch 'added-docker-compose-dev' into history-service
Bransonlj Oct 30, 2023
3dae5e7
Update Question service to use local Postgresql db
Bransonlj Oct 31, 2023
7ce0c68
update frontend questions pages to view history from history service
Bransonlj Nov 2, 2023
670d8c1
Add solutions, popularity and example to question. Update Questions f…
Bransonlj Nov 8, 2023
b00b21a
update docker compose file
johnbenedictyan Nov 8, 2023
71633b2
update matching service
johnbenedictyan Nov 8, 2023
86b57b6
update question service docker file
johnbenedictyan Nov 8, 2023
bd5ce6f
merge
johnbenedictyan Nov 8, 2023
aefc437
Merge pull request #22 from CS3219-AY2324S1/localKafka
johnbenedictyan Nov 8, 2023
3ba22ac
Merge branch 'master' into history-service
Bransonlj Nov 8, 2023
20dabc2
update docker
Bransonlj Nov 8, 2023
ac9d44a
Merge pull request #21 from Bransonlj/history-service
Bransonlj Nov 9, 2023
5b0322b
add difficulty and requested question id fields into matching schmea
johnbenedictyan Nov 9, 2023
88caa8a
update matching type
johnbenedictyan Nov 9, 2023
189b06c
standardised questionIdRequested type
johnbenedictyan Nov 9, 2023
1e08dfe
add difficulty and requested question id fields into matching schmea
johnbenedictyan Nov 9, 2023
e61d0da
update matching type
johnbenedictyan Nov 9, 2023
99a7700
standardised questionIdRequested type
johnbenedictyan Nov 9, 2023
950ff7c
Add consumer "matching-created", add producer "matching-fulfilled"
Bransonlj Nov 9, 2023
6e785e1
fix random question
Bransonlj Nov 9, 2023
f6e424c
Merge branch 'master' into fix-matching-event
johnbenedictyan Nov 9, 2023
4cbf50c
implement dynamic question matching
johnbenedictyan Nov 9, 2023
b912577
add constraint field to question, question form restrictions
Bransonlj Nov 9, 2023
ad084bb
Merge pull request #25 from Bransonlj/question-upload
Bransonlj Nov 9, 2023
0b4dcbb
Changed port number on files that call on user-service to reflect the…
Sampy147 Nov 9, 2023
c58a38c
Merge pull request #26 from Sampy147/master
Sampy147 Nov 9, 2023
f3900aa
update ui for questions, solutions, history
Bransonlj Nov 10, 2023
bff8d20
add new contexts
johnbenedictyan Nov 10, 2023
151e680
update code editor with themes
johnbenedictyan Nov 10, 2023
dd01ad4
update coding space component
johnbenedictyan Nov 10, 2023
c2f7c4b
update question page
johnbenedictyan Nov 10, 2023
b202981
eslint fixes
johnbenedictyan Nov 10, 2023
1c3b6d0
updates
johnbenedictyan Nov 10, 2023
34fc8d8
fix layout
johnbenedictyan Nov 10, 2023
491edfc
modify docker compose start period
johnbenedictyan Nov 10, 2023
ce34a6c
remove redundant
johnbenedictyan Nov 10, 2023
5027a96
add new model and model types
johnbenedictyan Nov 10, 2023
0a103be
remove attempts from table
Bransonlj Nov 10, 2023
e8b35f3
Merge branch 'master' into question-ui
Bransonlj Nov 10, 2023
b2f7fb1
update get question controller to include new relations
johnbenedictyan Nov 10, 2023
9a96fd3
add attempts back
Bransonlj Nov 10, 2023
9141570
Merge pull request #28 from Bransonlj/question-ui
Bransonlj Nov 10, 2023
c3b8ed9
add new forms
johnbenedictyan Nov 10, 2023
1c939c3
Merge branch 'master' into n-3-code-execution
johnbenedictyan Nov 10, 2023
d468706
Resolved navigation and frontend issues
Sampy147 Nov 10, 2023
38583af
Merge branch 'master' of https://github.com/Sampy147/ay2324s1-course-…
Sampy147 Nov 10, 2023
50744c9
Merge pull request #29 from Sampy147/master
Sampy147 Nov 10, 2023
67a167b
add retrofited user service
johnbenedictyan Nov 10, 2023
c28c27c
Integrating chat-service
YZmunchmunch Nov 10, 2023
4e1115b
Integrating chat-service
YZmunchmunch Nov 10, 2023
84b6082
Integrated complete UI for chat-service
YZmunchmunch Nov 10, 2023
f4dd000
Cleaned up unused files
YZmunchmunch Nov 10, 2023
0013f24
connect fe controller to be
johnbenedictyan Nov 11, 2023
53e8c1d
add retrofitted question service
johnbenedictyan Nov 11, 2023
e730a09
update retrofit question service with new relations
johnbenedictyan Nov 11, 2023
cce6084
update retrofit question service with new relations
johnbenedictyan Nov 11, 2023
eab9e71
update with new data record type
johnbenedictyan Nov 11, 2023
1de8d4e
add query functionality for questions
johnbenedictyan Nov 11, 2023
3e8da5f
update question controller
johnbenedictyan Nov 11, 2023
46104c0
modifiy interfaces
johnbenedictyan Nov 11, 2023
150b794
remove redundant code
johnbenedictyan Nov 11, 2023
fc46c93
update question interfaces
johnbenedictyan Nov 12, 2023
30358ce
Added .gitignore file for chat-service
YZmunchmunch Nov 12, 2023
58b2694
Add username to registration page. Configure registration page sign u…
Sampy147 Nov 12, 2023
e4cf4da
update with question controller
johnbenedictyan Nov 12, 2023
f5545de
Added jest to chat-service
YZmunchmunch Nov 12, 2023
bb90a30
wip
johnbenedictyan Nov 12, 2023
5be8531
update create question form
johnbenedictyan Nov 12, 2023
29c72b3
add categories to create question form
johnbenedictyan Nov 13, 2023
6866407
updates
johnbenedictyan Nov 13, 2023
c7ffad9
edit question update page
johnbenedictyan Nov 13, 2023
2319cdd
add all questions pages
johnbenedictyan Nov 13, 2023
e831828
fix pagination
johnbenedictyan Nov 13, 2023
933d6e3
update querying
johnbenedictyan Nov 13, 2023
aec7ffb
add title and difficulty filter
johnbenedictyan Nov 13, 2023
3989dac
update design
johnbenedictyan Nov 13, 2023
1d18b2a
update the difficulty upper case problem
johnbenedictyan Nov 13, 2023
697d91d
fix question links
johnbenedictyan Nov 13, 2023
36a19b1
wip
johnbenedictyan Nov 13, 2023
6fd1392
Updated docker-compose-dev.yml to reflect the correct env file for po…
Sampy147 Nov 13, 2023
9461e94
wip
johnbenedictyan Nov 13, 2023
02a1efb
fix create user bug
johnbenedictyan Nov 13, 2023
96a8e88
wip
johnbenedictyan Nov 13, 2023
b0210ef
delete env
johnbenedictyan Nov 13, 2023
5d38b11
update with make file and staging yml
johnbenedictyan Nov 13, 2023
02ec66c
fix
johnbenedictyan Nov 13, 2023
f8cfafe
Fix frontend page cut off visual issue
Sampy147 Nov 13, 2023
6cee2ec
Merge branch 'retrofit-user-service' of https://github.com/CS3219-AY2…
Sampy147 Nov 13, 2023
4c2ad53
add staging files
johnbenedictyan Nov 13, 2023
04fe418
Update history service to user Parser, Service, Controller
Bransonlj Nov 13, 2023
c92e620
find bugfix each user can be user1/user2
Bransonlj Nov 13, 2023
df1d17d
add history.controller to frontend
Bransonlj Nov 13, 2023
728c598
finish question editor for solution
johnbenedictyan Nov 13, 2023
b044be4
update docker file for history service
johnbenedictyan Nov 13, 2023
51b1440
Initialise jest and add parser.create unit tests
Bransonlj Nov 13, 2023
5109d02
Restored yarn files
YZmunchmunch Nov 13, 2023
8aae3b3
delete old files
Bransonlj Nov 13, 2023
3d0f825
Merge branch 'master' into history-service-update-test
johnbenedictyan Nov 13, 2023
400641a
Merge pull request #33 from Bransonlj/history-service-update-test
johnbenedictyan Nov 13, 2023
6c3ccc7
merge yarn lock
johnbenedictyan Nov 13, 2023
41b36ce
merge with master
johnbenedictyan Nov 13, 2023
e3dfaef
Update username change functionality so user can see name change imme…
Sampy147 Nov 13, 2023
0f855c8
Augment signin page with more complete error messages regarding authe…
Sampy147 Nov 13, 2023
db77178
Merge branch 'master' into retrofit-user-service
Sampy147 Nov 13, 2023
9850fac
Merge pull request #31 from CS3219-AY2324S1/retrofit-user-service
Sampy147 Nov 13, 2023
3ef352c
add backpressure for kafka
johnbenedictyan Nov 13, 2023
792bb86
fix bugs
Bransonlj Nov 13, 2023
17e6c2f
Merge pull request #34 from Bransonlj/fix-history-service
Bransonlj Nov 13, 2023
a08a1d1
Add parser test cases
Bransonlj Nov 13, 2023
b4ca92e
add HistoryService unit test
Bransonlj Nov 13, 2023
71c2fb4
add some controller unit tests
Bransonlj Nov 13, 2023
45cb741
update logger
johnbenedictyan Nov 14, 2023
ea5a4b4
include history into question context
johnbenedictyan Nov 14, 2023
886a2d1
merge with master to fix history"
johnbenedictyan Nov 14, 2023
8afc7c1
Fix controller error handling, add more controller unit test
Bransonlj Nov 14, 2023
01636e6
Update error messages in updateprofilemodal for consistency, remove u…
Sampy147 Nov 14, 2023
085e718
Merge branch 'master' of https://github.com/CS3219-AY2324S1/ay2324s1-…
Sampy147 Nov 14, 2023
a163e06
update kafka consumer use service
Bransonlj Nov 14, 2023
32690f1
Updated error messages in Register page for consistency and navlink i…
Sampy147 Nov 14, 2023
9311f4c
Merge branch 'master' into master
johnbenedictyan Nov 14, 2023
c40bfa9
Merge pull request #30 from YZmunchmunch/master
johnbenedictyan Nov 14, 2023
34d7965
Updated error messages in deleteprofilemodal for consistency
Sampy147 Nov 14, 2023
2b15b39
Merge branch 'master' of https://github.com/CS3219-AY2324S1/ay2324s1-…
Sampy147 Nov 14, 2023
70b4dae
Merge branch 'master' into history-service-add-more-testcase
Bransonlj Nov 14, 2023
0037857
Merge pull request #35 from Bransonlj/history-service-add-more-testcase
Bransonlj Nov 14, 2023
198da82
wip
johnbenedictyan Nov 14, 2023
2eac53a
add handle attempt again
johnbenedictyan Nov 14, 2023
61d8765
fix loading history
johnbenedictyan Nov 14, 2023
c954e7e
add hocs
johnbenedictyan Nov 14, 2023
247777a
update footer
johnbenedictyan Nov 14, 2023
8da909e
clean up frontend
johnbenedictyan Nov 14, 2023
c683d84
Fix code exec loading issue and modified to display code exec status …
Sampy147 Nov 14, 2023
47391b4
Fix testcase bug to ensure properly parsed inputs and checking
Sampy147 Nov 14, 2023
1930af7
Merged relevant files and resolved conflicts
Sampy147 Nov 14, 2023
5834454
Added admin-only restriction to FE routes and components
Sampy147 Nov 14, 2023
8677ae7
Fixed minor bugs in socket-service and replaced email with username i…
YZmunchmunch Nov 14, 2023
50f4056
Merge branch 'master' into master
YZmunchmunch Nov 14, 2023
101b4db
hotfix
johnbenedictyan Nov 15, 2023
1ae6768
Merge pull request #39 from CS3219-AY2324S1/hotfix-kafka
johnbenedictyan Nov 15, 2023
432291a
Merge branch 'master' into master
johnbenedictyan Nov 15, 2023
fc21082
Merge pull request #36 from YZmunchmunch/master
johnbenedictyan Nov 15, 2023
0ae348b
merge with master
johnbenedictyan Nov 15, 2023
4c779bc
updates
johnbenedictyan Nov 15, 2023
272b86c
delete unused pages
johnbenedictyan Nov 15, 2023
d939bed
delete unused pages
johnbenedictyan Nov 15, 2023
513e77a
Update coderesult for more thorough checking
Sampy147 Nov 15, 2023
0fbb40a
Merge branch 'master' of https://github.com/CS3219-AY2324S1/ay2324s1-…
Sampy147 Nov 15, 2023
67848a6
updates
johnbenedictyan Nov 15, 2023
5080939
fixes
johnbenedictyan Nov 15, 2023
1d6ec69
Merge pull request #38 from CS3219-AY2324S1/fix-matching-event
johnbenedictyan Nov 15, 2023
6d0b7a0
Updated coderesult parser to be more thorough
Sampy147 Nov 15, 2023
97eaa9c
Correct the roles for router
Sampy147 Nov 15, 2023
3a63d49
Merge branch 'master' of https://github.com/CS3219-AY2324S1/ay2324s1-…
Sampy147 Nov 15, 2023
346a33d
fix matching
johnbenedictyan Nov 15, 2023
b3abe47
Add solution ui
Bransonlj Nov 15, 2023
89d39f2
fix null issue
Bransonlj Nov 15, 2023
0422db9
Added back chat UI in frontend
YZmunchmunch Nov 15, 2023
2f89683
rename socket to collaboration
johnbenedictyan Nov 15, 2023
67f0cf4
Merge pull request #40 from CS3219-AY2324S1/hotfix-matching
johnbenedictyan Nov 15, 2023
9e63033
Merge pull request #42 from YZmunchmunch/master
johnbenedictyan Nov 15, 2023
271af59
Merge pull request #41 from Bransonlj/add-solutions-ui
johnbenedictyan Nov 15, 2023
50746f4
add github actions
johnbenedictyan Nov 15, 2023
5912e53
Merge pull request #43 from CS3219-AY2324S1/n2h-testing
johnbenedictyan Nov 15, 2023
6b06afd
add github actions for docker images
johnbenedictyan Nov 15, 2023
c6ef566
format workflows correctly
johnbenedictyan Nov 15, 2023
5888483
wip
johnbenedictyan Nov 15, 2023
d712f4e
updates
johnbenedictyan Nov 15, 2023
49323e9
updates
johnbenedictyan Nov 15, 2023
a3d7a87
Merge pull request #44 from CS3219-AY2324S1/fix-question-query
johnbenedictyan Nov 15, 2023
68a903c
Update FE controllers to reflect deployment uris
Sampy147 Nov 16, 2023
82a6ab0
Change FE dockerfile
Sampy147 Nov 16, 2023
683d353
Changed cors options to fix deployment bug
Sampy147 Nov 17, 2023
d9207b7
Resolve fix
Sampy147 Nov 17, 2023
9d01d40
Test Google cloud deployment
Sampy147 Nov 17, 2023
e7bf965
Update README.md
Sampy147 Nov 18, 2023
e9a6035
Update README.md
Sampy147 Nov 18, 2023
577b2e8
Update README.md
Sampy147 Nov 18, 2023
6933d30
Update README.md
Sampy147 Nov 18, 2023
48c6043
Update README.md
Sampy147 Nov 18, 2023
db6766b
add deadline
github-classroom[bot] Nov 18, 2023
f29e8e7
Fixed backend testcases
Sampy147 Nov 18, 2023
dd5fcbd
Merge branch 'master' of https://github.com/CS3219-AY2324S1/ay2324s1-…
Sampy147 Nov 18, 2023
19dd489
Fix bugs
Sampy147 Nov 18, 2023
6587b62
Augment backend question testing
Sampy147 Nov 18, 2023
91dd0ef
Update page to fix ESLint error
Sampy147 Nov 18, 2023
cfab65e
Remove .env file for Question and User services
ChickenChiang Nov 19, 2023
efcefb5
Revert "Remove .env file for Question and User services"
ChickenChiang Nov 19, 2023
09bacad
Remove .env files from user-service2 and question-service2 folder
ChickenChiang Nov 19, 2023
011f02d
Update MatchingContext.tsx
ChickenChiang Nov 21, 2023
bac4961
Merge pull request #45 from ChickenChiang/master
ChickenChiang Nov 21, 2023
4a40618
Merge pull request #46 from ChickenChiang/patch-1
ChickenChiang Nov 21, 2023
8900389
Update MatchingContext.tsx
ChickenChiang Nov 21, 2023
9626e51
Edit create.ts to fix matching issues
ChickenChiang Nov 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-chat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Chat Service Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./backend/chat-service
file: ./backend/chat-service/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-chat-service:latest
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-collaboration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Collaboration Service Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./backend/collaboration-service
file: ./backend/collaboration-service/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-collaboration-service:latest
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Frontend Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./frontend
file: ./frontend/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-frontend:latest
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-history.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: History Service Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./backend/history-service
file: ./backend/history-service/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-history-service:latest
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-matching.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Matching Service Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./backend/matching-service
file: ./backend/matching-service/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-matching-service:latest
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Question Service Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./backend/question-service
file: ./backend/question-service/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-question-service:latest
35 changes: 35 additions & 0 deletions .github/workflows/docker-image-user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: User Service Docker Image CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- # Push to master branch - push "latest" tag
name: Build and Push (latest)
if: github.event_name == 'push'
uses: docker/build-push-action@v3
with:
context: ./backend/user-service
file: ./backend/user-service/Dockerfile.prod
push: true
no-cache: true
platforms: linux/arm64
tags: johnbenedictyan/cs3219-user-service:latest
31 changes: 31 additions & 0 deletions .github/workflows/history-service-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: History Service Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
working-directory: ./backend/history-service
run: yarn install
- name: Run Test
working-directory: ./backend/history-service
run: yarn test:unit
31 changes: 31 additions & 0 deletions .github/workflows/matching-service-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Matching Service Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
working-directory: ./backend/matching-service
run: yarn install
- name: Run Test
working-directory: ./backend/matching-service
run: yarn test:unit
31 changes: 31 additions & 0 deletions .github/workflows/question-service-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Question Service Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
working-directory: ./backend/question-service
run: yarn install
- name: Run Test
working-directory: ./backend/question-service
run: yarn test:unit
31 changes: 31 additions & 0 deletions .github/workflows/user-service-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: User Service Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Dependencies
working-directory: ./backend/user-service
run: yarn install
- name: Run Test
working-directory: ./backend/user-service
run: yarn test:unit
Loading
Loading