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 270 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
709fa84
update styles
alyssaongyx Sep 26, 2024
a7526b7
fix some styles
alyssaongyx Sep 26, 2024
53e7c47
fix some issues
alyssaongyx Sep 26, 2024
63eb96a
change link for title instead
alyssaongyx Sep 26, 2024
d6ac07b
Merge pull request #4 from CS3219-AY2425S1/feature/question-page
meowwtama Sep 26, 2024
e722957
Add fetch by difficullty
meowwtama Sep 26, 2024
0b5eb01
Merge branch 'main' into feature/question-service
meowwtama Sep 26, 2024
b11a46c
Align frontend with backend
meowwtama Sep 26, 2024
1f80ad6
Update question-controller.ts
meowwtama Sep 26, 2024
9f3a0c1
Merge remote-tracking branch 'origin/feature/login-page' into develop
abstxn Sep 26, 2024
e22b63d
update packages
abstxn Sep 26, 2024
7006bf7
Merge remote-tracking branch 'meowwtama/feature/question-service' int…
abstxn Sep 26, 2024
99ee68f
add nodemon as dev dependency
abstxn Sep 26, 2024
17a140b
Merge pull request #5 from meowwtama/feature/question-service
alyssaongyx Sep 26, 2024
cf64838
Merge branch 'main' of https://github.com/CS3219-AY2425S1/cs3219-ay24…
techjay-c Sep 26, 2024
b0432d6
Update login page to fix background color issues and image positionin…
techjay-c Sep 27, 2024
83b1c87
Delete firebase from project. Update login page to use mongoDB
techjay-c Sep 27, 2024
3523842
Added sign up functionality
ruth-lim Sep 27, 2024
f5ee844
Clean up UI
ruth-lim Sep 27, 2024
a1ae01d
Added toast component from Chakra UI for error and success messages
ruth-lim Sep 27, 2024
e8b11a8
Added toast component for login
ruth-lim Sep 27, 2024
65085e4
Merge pull request #6 from CS3219-AY2425S1/feature/signup-page
techjay-c Sep 29, 2024
a8990ef
Add home page and define routes after successful log in
techjay-c Sep 29, 2024
3fd0926
Merge branch 'feature/login-page' of https://github.com/CS3219-AY2425…
techjay-c Sep 29, 2024
0eba1fb
Fix issues with Docker
abstxn Sep 29, 2024
8330da4
Merge remote-tracking branch 'origin/feature/login-page' into feature…
abstxn Sep 29, 2024
181f59d
change to correct port
abstxn Sep 29, 2024
ee9a3f8
add sample questions
abstxn Sep 29, 2024
250ef23
npm ci instead of install in dockerfiles
abstxn Sep 29, 2024
732ed20
root redirects to questions
abstxn Sep 29, 2024
82dc2e3
add sample .env file
abstxn Sep 29, 2024
d4785bd
Merge pull request #7 from CS3219-AY2425S1/develop
techjay-c Sep 29, 2024
dfe2e52
containerize dbs for each service
abstxn Oct 2, 2024
3e688c2
update sample .env files
abstxn Oct 3, 2024
95d946f
change env var to dev
abstxn Oct 3, 2024
929551b
Merge pull request #8 from CS3219-AY2425S1/feature/containerize-dbs
techjay-c Oct 6, 2024
3ee510c
Merge pull request #9 from CS3219-AY2425S1/develop
techjay-c Oct 6, 2024
5d53daf
Fix styling issues with questions table
ruth-lim Oct 14, 2024
7518023
Added frontend page and components for matching service
ruth-lim Oct 14, 2024
7009246
create mock matching page
abstxn Oct 15, 2024
c2e405b
Merge remote-tracking branch 'origin/feature/matching-service' into f…
abstxn Oct 15, 2024
5793b4c
pull difficulties and topics from db
abstxn Oct 15, 2024
f64fb62
prepare frontend for long-polling pattern
abstxn Oct 15, 2024
7f6ee00
conditionally show components based on login status
abstxn Oct 15, 2024
664e59e
remove mock matching pages
abstxn Oct 16, 2024
57ff680
send relevant data to /match-me endpoint
abstxn Oct 16, 2024
264d472
fix JWT token being cleared wrongly
abstxn Oct 16, 2024
080d28a
break matching-service into sub-services
abstxn Oct 17, 2024
f0d15db
initialise child services
abstxn Oct 17, 2024
eda8c00
initialise matcher-service
abstxn Oct 17, 2024
d65b9cc
produce match-events to kafka
abstxn Oct 17, 2024
9424d7c
produce cancel-match-event
abstxn Oct 17, 2024
048e35a
setup matcher-service
abstxn Oct 17, 2024
5586400
setup environment
abstxn Oct 17, 2024
e9879d0
Add collaboration service
meowwtama Oct 17, 2024
55742b7
match-found-events complete
abstxn Oct 19, 2024
15f9231
countdown ends when match found
abstxn Oct 19, 2024
b715d8a
reload-resistant matching
abstxn Oct 19, 2024
0650da9
swap to short polling for stability
abstxn Oct 19, 2024
59ff172
timeout match request if in server for too long
abstxn Oct 19, 2024
1de22b0
match by topic
abstxn Oct 19, 2024
6e3cedd
match wait timer syncs with backend
abstxn Oct 19, 2024
83d2dc2
stability fixes
abstxn Oct 19, 2024
23a0043
implement cancel matching
abstxn Oct 19, 2024
1af9aeb
show queue status when changed
abstxn Oct 20, 2024
9c6b141
Update MonacoEditor.tsx
meowwtama Oct 20, 2024
7cc87ac
Merge pull request #10 from CS3219-AY2425S1/feature/matching-service
techjay-c Oct 22, 2024
d2bbcbf
show username when logged in
abstxn Oct 24, 2024
eb4257c
add logout feature
abstxn Oct 24, 2024
60af46a
prompt user to sign in again if signed out when matching
abstxn Oct 24, 2024
d3ee932
Merge branch 'CS3219-AY2425S1:main' into feature/collaboration-service
meowwtama Oct 26, 2024
817d901
Update request param
meowwtama Oct 26, 2024
356b1ff
Install firebase
techjay-c Oct 27, 2024
2cdf9b7
Add frontend component for collaboration code editor page
techjay-c Oct 28, 2024
bca4325
Add profile page functionality to login flow
techjay-c Oct 28, 2024
3424e10
Remove old navbar component and modify new navbar
techjay-c Oct 28, 2024
0232f67
Update usage of variables from local variables to session variables a…
techjay-c Oct 28, 2024
cc67a47
Add About Us page
techjay-c Oct 28, 2024
cdc04d6
Revert to use local storage instead of session storage
techjay-c Oct 28, 2024
a40f7ba
Update typescript error to fix question list fetch bug
techjay-c Oct 28, 2024
a4abe25
Add About Us page ref to nav bar
techjay-c Oct 28, 2024
39e3a42
Add Change Password page and functionality
techjay-c Oct 28, 2024
2e4d595
Add JWT authentication
meowwtama Oct 28, 2024
fea1754
Update nav bar to show match me tab only if user is authenticated
techjay-c Oct 29, 2024
8483d75
Merge pull request #17 from meowwtama/feature/collaboration-service
techjay-c Oct 29, 2024
1cd79d5
Merge branch 'feature/collab-backend' of https://github.com/CS3219-AY…
techjay-c Oct 29, 2024
58debd4
Added add question modal for admin role
ruth-lim Oct 29, 2024
d1f7256
Refresh table upon adding question
ruth-lim Oct 29, 2024
afdf545
Added delete question function
ruth-lim Oct 29, 2024
63be5f5
Enhance dequeue service with status based timer handling for match ev…
techjay-c Oct 29, 2024
5af59c2
Added edit question function
ruth-lim Oct 30, 2024
23bf935
Fix return
meowwtama Oct 30, 2024
879b37c
Merge pull request #18 from CS3219-AY2425S1/feature/collab-env
meowwtama Oct 30, 2024
5ea572e
dequeue timeout is relative to match request time
abstxn Oct 30, 2024
2e3bd38
Merge branch 'feature/collab-env' into feature/profile-page
abstxn Oct 30, 2024
ec07e90
Update questionId in init-question-db to correct type
ruth-lim Oct 30, 2024
535bebc
Insert questionId into payload in backend
ruth-lim Oct 30, 2024
36e2730
Change category to string[]
ruth-lim Oct 30, 2024
dbf84c4
Handle edge cases for question list
ruth-lim Oct 30, 2024
7b015a4
implement basic password change
abstxn Oct 31, 2024
f132745
implement account deletion
abstxn Oct 31, 2024
53f3476
Update CodeEditor frontend to use QuestionSideBar components
techjay-c Oct 31, 2024
a73473c
Change Create Room parameters
meowwtama Oct 31, 2024
17d3235
Change to multiselect for topics
ruth-lim Oct 31, 2024
7a800cf
Change topics to use enum values
ruth-lim Oct 31, 2024
3869fd5
Verify admin status at login
ruth-lim Oct 31, 2024
0ee8014
Integrate Collaboration Service backend
meowwtama Oct 31, 2024
24283a0
set up skeleton for the chat service
alyssaongyx Oct 31, 2024
d8f69d4
secure password change process
abstxn Nov 1, 2024
8a5f384
Dockerize collaboration-service and update collab service to use port…
techjay-c Nov 1, 2024
23b3552
Add logging for room ID
techjay-c Nov 1, 2024
e91caf9
Update Code editor page
techjay-c Nov 1, 2024
2a025a0
implement password reset feature
abstxn Nov 1, 2024
2552a49
Add link redirection to code editor
techjay-c Nov 1, 2024
0dd5004
Fix code editor to take room ID only
techjay-c Nov 1, 2024
65e65ef
update styles of chat
alyssaongyx Nov 1, 2024
079bfe7
Update authenticated routes
techjay-c Nov 1, 2024
6fd4066
Add support for multiple programming languages
techjay-c Nov 1, 2024
fb86685
Merge branch 'feature/profile-page' into feature/collab-env
abstxn Nov 2, 2024
c7b5113
modify room joining logic
abstxn Nov 2, 2024
8f46e55
Create leave room function
techjay-c Nov 2, 2024
fa9e644
Add function for users to leave room and integrate with backend routes
techjay-c Nov 3, 2024
8be5100
Add chakra UI alert dialog component in code editor
techjay-c Nov 3, 2024
223f75f
Update leave room function to reset matching status
techjay-c Nov 3, 2024
18ea480
Update code editor to pull question details from backend route
techjay-c Nov 3, 2024
2e04728
Update manifesto on about us page
techjay-c Nov 4, 2024
bd77aed
Add syntax highlighting using Shikijs
techjay-c Nov 4, 2024
686a86c
Merge branch 'question-service-enhancement' of https://github.com/CS3…
techjay-c Nov 4, 2024
ff7c1d0
Update code editor to sync language template during change in languag…
techjay-c Nov 4, 2024
5e4abd2
Fix username on account button bug
techjay-c Nov 4, 2024
6375941
Update backend code logic for leave room to update room status and ma…
techjay-c Nov 4, 2024
9a9c3b6
Update question model
meowwtama Nov 4, 2024
b0dedb7
Add questionId field to add question
meowwtama Nov 4, 2024
caa6eec
Add duplicate check for title and description
meowwtama Nov 4, 2024
07ca595
Add get question by category
meowwtama Nov 4, 2024
d0a4ece
Add random question assignment
meowwtama Nov 4, 2024
6830252
Add history service
meowwtama Nov 4, 2024
b1c81e6
Update difficulty level of question to show color
techjay-c Nov 4, 2024
88ce6eb
Merge pull request #24 from CS3219-AY2425S1/draft/collab-env
techjay-c Nov 4, 2024
7236b14
Update Time format
meowwtama Nov 5, 2024
3948f80
fix login issue
abstxn Nov 5, 2024
58f986b
fix waiting time not clearing
abstxn Nov 5, 2024
00ca21d
prevent easy and hard matches
abstxn Nov 5, 2024
2c4abeb
Update code editor frontend and backend to support storage of 4 progr…
techjay-c Nov 5, 2024
7b19fda
Merge branch 'feature/collab-env' of https://github.com/CS3219-AY2425…
techjay-c Nov 5, 2024
4488c96
Update question-controller.ts
meowwtama Nov 5, 2024
f764b40
Merge branch 'feature/collab-env' of https://github.com/CS3219-AY2425…
techjay-c Nov 5, 2024
f6bece9
Fix bug for question details page on frontend
techjay-c Nov 5, 2024
1473302
Merge changes for support for multiple languages in firebase
techjay-c Nov 5, 2024
d8b8441
Merge branch 'feature/collab-env' of https://github.com/CS3219-AY2425…
alyssaongyx Nov 6, 2024
8f11359
fix type error when fetching questions by id
abstxn Nov 6, 2024
7ab1b66
Merge branch 'bugfixes' of https://github.com/CS3219-AY2425S1/cs3219-…
techjay-c Nov 6, 2024
cb4b855
define proper startup order for kafka dependents
abstxn Nov 6, 2024
79ded5a
transition modal when leaving room
abstxn Nov 6, 2024
1bd3dcd
toast when partner leaves room
abstxn Nov 6, 2024
592a1f2
display room active status
abstxn Nov 6, 2024
019e83c
integrate chat into collab
alyssaongyx Nov 6, 2024
5216b08
Merge branch 'feature/chat-service' into develop
abstxn Nov 6, 2024
c3dd3f9
Merge branch 'features/ux' into develop
abstxn Nov 6, 2024
92c062c
Update editor page to display question assigned to the user
techjay-c Nov 6, 2024
de3fcc5
show username of partner in chat
abstxn Nov 6, 2024
8bfbadb
add history frontend
alyssaongyx Nov 6, 2024
0be44e9
Add kubernetes files
ruth-lim Nov 6, 2024
c21fcba
Merge branch 'feature/collab-env' into develop
abstxn Nov 6, 2024
9a70890
Added config files
ruth-lim Nov 6, 2024
f470dcc
Merge branch 'feature/history-service' into develop
abstxn Nov 6, 2024
e91e6fc
Adjust memory space
ruth-lim Nov 6, 2024
165b326
Use internal service names
ruth-lim Nov 6, 2024
db386b8
viewing old attempt brings back to old room
abstxn Nov 6, 2024
65872b4
redirect to / when leaving old room
abstxn Nov 6, 2024
1814513
Remove home page from navbar and fix bug for preserving editor state …
techjay-c Nov 6, 2024
593e730
Merge branch 'develop' of https://github.com/CS3219-AY2425S1/cs3219-a…
techjay-c Nov 6, 2024
54e1156
Merge pull request #30 from CS3219-AY2425S1/feature/collab-enhancement
techjay-c Nov 6, 2024
6591685
Change service type to LoadBalancer to expose service and Added horiz…
ruth-lim Nov 6, 2024
9b63af6
add jenkins
alyssaongyx Nov 6, 2024
1089874
loading modal before entering matched room
abstxn Nov 7, 2024
835ae8c
random question pool accounts for difficulties
abstxn Nov 7, 2024
706dd70
frontend will not allow invalid topic/difficulty pairs
abstxn Nov 7, 2024
8c6ca1e
prevent users from sending empty chat messages
abstxn Nov 7, 2024
585bf56
add save status check
abstxn Nov 7, 2024
28f61eb
fix the chat length and remove UTC
alyssaongyx Nov 7, 2024
5197ba6
prevent user from typing empty messages
alyssaongyx Nov 7, 2024
33a8ac1
disable editing if one user leaves
abstxn Nov 7, 2024
31f6037
old rooms will not display chat
abstxn Nov 7, 2024
57bf085
Merge branch 'feature/jenkins' into develop
abstxn Nov 7, 2024
d4b7aa9
show status of other user in the collaboration environment
abstxn Nov 7, 2024
9e6e731
remove redundant run button
abstxn Nov 7, 2024
1a6be29
time is shown in singapore locale
abstxn Nov 7, 2024
e6777a7
fix bug with joining old room changing activity status
abstxn Nov 7, 2024
b4b774c
update post
alyssaongyx Nov 8, 2024
05f4533
add build script
alyssaongyx Nov 9, 2024
227890c
Update firebaseConfig.ts
meowwtama Nov 9, 2024
8d37047
Extract APIs into .env
ruth-lim Nov 9, 2024
78cff3c
Remove API keys
meowwtama Nov 9, 2024
07d898f
Update resource allocation
ruth-lim Nov 9, 2024
7dd16fe
Merge branch 'develop' into kubernetes
ruth-lim Nov 9, 2024
92bd549
added branchname
alyssaongyx Nov 9, 2024
0a74820
add option for user to download code
abstxn Nov 9, 2024
102c42f
revert to use scm
alyssaongyx Nov 9, 2024
f97e8da
add console log
alyssaongyx Nov 9, 2024
66aabb5
update console log
alyssaongyx Nov 9, 2024
884ef4b
show room active time and fix time format bug
abstxn Nov 9, 2024
3bfc450
ensure topics and difficulties are always sorted
abstxn Nov 9, 2024
e64cb64
remove typo
alyssaongyx Nov 9, 2024
fe053ed
Update env file configurations
meowwtama Nov 9, 2024
63f569d
Add backend for history category
meowwtama Nov 9, 2024
0eecbec
Merge branch 'features/ux' into develop
abstxn Nov 9, 2024
bbb9f28
update logs
alyssaongyx Nov 9, 2024
e3e0247
update logs
alyssaongyx Nov 9, 2024
af341d2
add docker installation
alyssaongyx Nov 9, 2024
f4771db
add console log to trigger pipeline
alyssaongyx Nov 9, 2024
4f08e89
Merge branch 'develop' into kubernetes
ruth-lim Nov 9, 2024
c8bd758
enforce creation of secure passwords
abstxn Nov 9, 2024
73fbfc8
Merge branch 'feature/secure-password' into develop
abstxn Nov 9, 2024
f6e19f9
update docker tool
alyssaongyx Nov 9, 2024
d4f21f2
update docker tool
alyssaongyx Nov 9, 2024
81abddf
Add time spent in History data
meowwtama Nov 9, 2024
e2cd642
Extract API
ruth-lim Nov 9, 2024
40e351a
Add kubernetes file for chat
ruth-lim Nov 9, 2024
48519ef
Remove secrets
ruth-lim Nov 9, 2024
a1a959a
Remove unused file
ruth-lim Nov 9, 2024
673f732
only fetch waiting time on reload
abstxn Nov 10, 2024
f209460
prevent unnecessary stage changes
abstxn Nov 10, 2024
d2dfd91
add tests for question-service
alyssaongyx Nov 9, 2024
77992e3
add tests for history-service
alyssaongyx Nov 9, 2024
5a0e4d6
update tests
alyssaongyx Nov 9, 2024
b1a6abe
update jenkins
alyssaongyx Nov 10, 2024
c3ef17a
Merge branch 'develop' into kubernetes
ruth-lim Nov 10, 2024
d353c79
Added cors for request service
ruth-lim Nov 10, 2024
bde28a9
store chat messages in local storage
alyssaongyx Nov 10, 2024
965d91c
Merge branch 'feature/matching-algorithm' into develop
abstxn Nov 10, 2024
d32803d
Update correct endpoints for local dev
ruth-lim Nov 12, 2024
78c16ab
Merge branch 'develop' into kubernetes
ruth-lim Nov 13, 2024
84cbd31
Add logging
ruth-lim Nov 13, 2024
faab1a6
Update room model to include userLanguage field
techjay-c Nov 13, 2024
cb668e9
Update code editor to implement user confirmation when language switc…
techjay-c Nov 13, 2024
5c0ce03
Add root route for health check
ruth-lim Nov 13, 2024
d6a70c1
Fix bug that current user will still receive language toast even if h…
techjay-c Nov 13, 2024
91f6c06
Fix more bugs for code language switching
techjay-c Nov 13, 2024
d7c54a2
Update cors
ruth-lim Nov 13, 2024
8e8d67e
Merge branch 'develop' into feature/collab-new-enhance
techjay-c Nov 13, 2024
5dea56f
Merge pull request #36 from CS3219-AY2425S1/feature/collab-new-enhance
techjay-c Nov 13, 2024
7f386b6
Fix duplicate const declaration in code editor file
techjay-c Nov 13, 2024
e681a61
Fix bug for multiple toast messages when code language is spammed
techjay-c Nov 13, 2024
37ef707
Remove unused declarations
techjay-c Nov 13, 2024
1d4c156
Merge branch 'develop' into kubernetes
ruth-lim Nov 13, 2024
d7b7b60
Update import
ruth-lim Nov 14, 2024
fb5e31e
Merge branch 'develop' into kubernetes
ruth-lim Nov 14, 2024
d5a877a
Update deployment configuration
ruth-lim Nov 14, 2024
956275b
Merge pull request #37 from CS3219-AY2425S1/kubernetes
abstxn Nov 14, 2024
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
271 changes: 271 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
# Created by https://www.toptal.com/developers/gitignore/api/nextjs,react,node,macos,windows,linux,firebase
# Edit at https://www.toptal.com/developers/gitignore?templates=nextjs,react,node,macos,windows,linux,firebase

### Firebase ###
.idea
**/node_modules/*
**/.firebaserc

### Firebase Patch ###
.runtimeconfig.json
.firebase/

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### NextJS ###
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

### Node ###
# Logs
logs
*.log
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit

### react ###
.DS_*
**/*.backup.*
**/*.back.*

node_modules

*.sublime*

psd
thumb
sketch

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/nextjs,react,node,macos,windows,linux,firebase

120 changes: 120 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
pipeline {
environment {
customImage = ""
}

agent any
tools {
nodejs 'nodejs'
}

stages {
stage('Clone Repository') {
steps {
checkout scm
echo 'Testing'
}
}

stage('Build History Service') {
steps {
dir('history-service') {
sh '''
npm install
npm run build
'''
}
}
}

// stage('Test History Service') {
// steps {
// dir('history-service') {
// sh '''
// npm test
// '''
// }
// }
// }

stage('Build Questions Service') {
steps {
dir('question-service') {
sh '''
npm install
npm run build
'''
}
}
}

stage('Test Questions Service') {
steps {
dir('question-service') {
sh '''
npm test
'''
}
}
}

// Optionally, uncomment to build the frontend
// stage('Build Frontend') {
// steps {
// dir('frontend') {
// sh '''
// npm install
// npm run dev
// '''
// }
// }
// }

// stage('Build History Docker Image') {
// steps {
// dir('history-service') {
// script {
// withDockerRegistry(credentialsId: 'docker-credentials', url: '') {
// customImage = docker.build("alyssaoyx/history-service:${BUILD_NUMBER}")
// }
// }
// }
// }
// }

// stage('Build Questions Docker Image') {
// steps {
// dir('question-service') {
// script {
// customImage = docker.build("alyssaoyx/question-service:${env.BUILD_ID}")
// }
// }
// }
// }

// stage('Push Docker Images to Registry') {
// steps {
// script {
// withCredentials([usernamePassword(credentialsId: 'docker-credentials', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASSWORD')]) {
// sh 'echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin'
// }
// sh "docker push alyssaoyx/history-service:${env.BUILD_ID}"
// sh "docker push alyssaoyx/question-service:${env.BUILD_ID}"
// }
// }
// }
}
// post {
// always {
// echo 'Cleaning up Docker images...'
// sh 'docker rmi alyssaoyx/history-service:${env.BUILD_ID} || true'
// sh 'docker rmi alyssaoyx/question-service:${env.BUILD_ID} || true'
// }
// success {
// echo 'Pipeline completed successfully!'
// }
// failure {
// echo 'Pipeline failed. Please check the logs for errors.'
// }
// }
}
Loading