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 418 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
392325a
Fix build error
bharathcs Sep 29, 2023
27bdcce
Update innkeeper api type
bharathcs Sep 29, 2023
aeb80dd
Add useInnkeeper hook and room-related Jotai atoms
bharathcs Sep 29, 2023
3a030f6
Update env for github workflows
bharathcs Sep 30, 2023
81f9cc1
chore(deps): bump daisyui from 3.8.0 to 3.8.2 in /frontend
dependabot[bot] Sep 30, 2023
ee8700b
chore(deps): bump @types/react from 18.2.21 to 18.2.23 in /frontend
dependabot[bot] Sep 30, 2023
dda45bd
chore(deps): bump eslint-config-next from 13.4.19 to 13.5.3 in /frontend
dependabot[bot] Sep 30, 2023
9964e5d
Merge pull request #58 from PeerPrep/dependabot/npm_and_yarn/frontend…
sivayogasubramanian Sep 30, 2023
f870979
Merge pull request #56 from PeerPrep/dependabot/npm_and_yarn/users/mi…
sivayogasubramanian Sep 30, 2023
3f47f15
Merge pull request #51 from PeerPrep/dependabot/npm_and_yarn/frontend…
sivayogasubramanian Sep 30, 2023
d6471c3
Merge pull request #49 from PeerPrep/dependabot/npm_and_yarn/frontend…
sivayogasubramanian Sep 30, 2023
e1419ae
chore(deps): bump @mikro-orm/postgresql from 5.8.1 to 5.8.4 in /users
dependabot[bot] Sep 30, 2023
aed2b68
Merge pull request #39 from PeerPrep/dependabot/npm_and_yarn/users/ty…
sivayogasubramanian Sep 30, 2023
1bd9a1c
Merge pull request #55 from PeerPrep/dependabot/npm_and_yarn/users/mi…
sivayogasubramanian Sep 30, 2023
6e013f6
Merge pull request #53 from PeerPrep/bhcs/fe-socket-integ
sivayogasubramanian Sep 30, 2023
a60b907
Fix failing frontend
bharathcs Sep 30, 2023
e12b2ea
Merge pull request #60 from PeerPrep/bhcs/fix-failing-frontend
sivayogasubramanian Sep 30, 2023
9a19fba
feat: add status bar
elroygohjy Oct 4, 2023
6f7fac4
feat: add settings page (no logic)
elroygohjy Oct 7, 2023
2ecf1e7
chore(deps): bump react-select from 5.7.4 to 5.7.7 in /frontend
dependabot[bot] Oct 9, 2023
35b86d7
feat: add modal prompt to select qn
elroygohjy Oct 10, 2023
a0d318e
Merge pull request #72 from PeerPrep/FE-status-bar
elroygohjy Oct 10, 2023
4fec7ce
chore(deps): bump react-codemirror2 from 7.2.1 to 7.3.0 in /frontend
dependabot[bot] Oct 10, 2023
d4e0600
chore(deps): bump eslint from 8.49.0 to 8.51.0 in /frontend
dependabot[bot] Oct 10, 2023
cbe0525
chore(deps): bump antd from 5.9.2 to 5.9.4 in /frontend
dependabot[bot] Oct 2, 2023
0e29ff7
feat(navbar): add nav elements
elroygohjy Oct 11, 2023
8ab66a6
feat: add admin portal page and result pane
elroygohjy Oct 11, 2023
5ee136f
Merge pull request #79 from PeerPrep/FE-nav
elroygohjy Oct 11, 2023
669f364
Add module resolution file
bharathcs Oct 11, 2023
88a5597
Squash changes for realtime
bharathcs Oct 11, 2023
d4429f2
refactor and add admin endpoint
Manoharan-Ajay-Anand Oct 11, 2023
11e9009
add admin router as new endpoint
Manoharan-Ajay-Anand Oct 11, 2023
91020d1
feat: add search feature
kevinchua6 Oct 11, 2023
d99ceb0
feat: add filter button logic
kevinchua6 Oct 11, 2023
a244842
fix bugs
Manoharan-Ajay-Anand Oct 12, 2023
6cd21ea
Merge pull request #81 from PeerPrep/ajay/admin-endpoint
Manoharan-Ajay-Anand Oct 12, 2023
ab6a4a0
Add firebase middleware
sivayogasubramanian Oct 13, 2023
b45603d
add schema update and dotenv
Manoharan-Ajay-Anand Oct 13, 2023
dd2e396
Merge pull request #83 from PeerPrep/ajay/users-env-db
Manoharan-Ajay-Anand Oct 13, 2023
f36b515
Merge branch 'master' into finalize-questions-service
sivayogasubramanian Oct 13, 2023
a22b1e6
Query users service for role
sivayogasubramanian Oct 13, 2023
7873ec7
Run yarn upgrade
sivayogasubramanian Oct 13, 2023
6353041
Merge pull request #82 from PeerPrep/finalize-questions-service
sivayogasubramanian Oct 13, 2023
eb59e11
Run yarn upgrade
sivayogasubramanian Oct 13, 2023
87a67a6
Merge pull request #86 from PeerPrep/update-users-service-deps
sivayogasubramanian Oct 13, 2023
9c928c2
Roll back codemirror/collab changes
bharathcs Oct 14, 2023
e20697c
Merge pull request #87 from PeerPrep/bhcs/only-user-badge-fix
elroygohjy Oct 14, 2023
6a7227b
chore(deps): bump postcss from 8.4.30 to 8.4.31 in /frontend
dependabot[bot] Oct 14, 2023
513c6e6
Merge pull request #89 from PeerPrep/dependabot/npm_and_yarn/frontend…
bharathcs Oct 14, 2023
2d00210
Merge branch 'master' into kevin/table
kevinchua6 Oct 15, 2023
bb13fb2
feat: add firebase token
kevinchua6 Oct 15, 2023
d932d64
feat: add loading
elroygohjy Oct 15, 2023
079d5c4
chore: remove unneeded redirect
elroygohjy Oct 15, 2023
3ef06e8
fix: fix invalid redirect
elroygohjy Oct 15, 2023
710260f
Merge pull request #91 from PeerPrep/FE-loading
elroygohjy Oct 15, 2023
82ff601
Use env vars for docker compose
sivayogasubramanian Oct 16, 2023
3b28116
update apis
Manoharan-Ajay-Anand Oct 22, 2023
e0af488
Merge branch 'master' into kevin/table
elroygohjy Oct 22, 2023
fcbf627
fix: fix error coming out when table fetching
kevinchua6 Oct 22, 2023
a556dc3
Merge branch 'kevin/table' of github.com:PeerPrep/peerprep into kevin…
kevinchua6 Oct 22, 2023
4ee02b8
Merge pull request #99 from PeerPrep/kevin/table
elroygohjy Oct 22, 2023
fb1f0ec
integrate settings
Manoharan-Ajay-Anand Oct 22, 2023
fa90553
Merge branch 'master' of github.com:PeerPrep/peerprep into ajay/profi…
Manoharan-Ajay-Anand Oct 22, 2023
3bfff6a
update settings page
Manoharan-Ajay-Anand Oct 22, 2023
915ab58
chore(deps-dev): bump @types/jest from 29.5.5 to 29.5.6 in /innkeeper
dependabot[bot] Oct 23, 2023
95ffc2e
chore(deps): bump firebase-admin from 11.10.1 to 11.11.0 in /frontend
dependabot[bot] Oct 14, 2023
06fd6f5
chore(deps): bump antd from 5.9.4 to 5.10.2 in /frontend
dependabot[bot] Oct 23, 2023
da3819a
chore(deps): bump @types/react from 18.2.23 to 18.2.31 in /frontend
dependabot[bot] Oct 23, 2023
4e207e5
chore(deps): bump autoprefixer from 10.4.15 to 10.4.16 in /frontend
dependabot[bot] Oct 16, 2023
f4c7128
dont use photo for default profile
Manoharan-Ajay-Anand Oct 23, 2023
41e6e90
chore(deps): bump @babel/traverse from 7.23.0 to 7.23.2 in /innkeeper
dependabot[bot] Oct 25, 2023
a680bf4
Merge pull request #115 from PeerPrep/bhcs/merge-deps
bharathcs Oct 25, 2023
287bfca
chore(deps): bump daisyui from 3.8.2 to 3.9.3 in /frontend
dependabot[bot] Oct 25, 2023
2955098
Switch FE to YJS
bharathcs Oct 25, 2023
04cc267
Switch inn to yjs
bharathcs Oct 25, 2023
17cc806
Delete unnecessary codemirror glue
bharathcs Oct 25, 2023
8f88be9
Update FE logic for yjs
bharathcs Oct 26, 2023
acbfa6f
Fix connection problem
bharathcs Oct 26, 2023
8c22df5
Use roomId and authToken
bharathcs Oct 26, 2023
76b759c
Fix losing history on reload
bharathcs Oct 26, 2023
593058b
Mv room/[roomId] -> room/
bharathcs Oct 26, 2023
cabe760
Pass down auth to CodeEditor for use
bharathcs Oct 26, 2023
134f39d
Fix typing (thanks elroy)
bharathcs Oct 26, 2023
5521689
Merge pull request #118 from PeerPrep/bhcs/yjs-2
elroygohjy Oct 26, 2023
ce51126
Integrate execution (WIP)
elroygohjy Oct 26, 2023
ada9696
Merge pull request #120 from PeerPrep/integrate-execution
sivayogasubramanian Oct 26, 2023
619008d
fix: fix hook issue for execute method
elroygohjy Oct 26, 2023
9b17888
fix: fix request for execute
elroygohjy Oct 26, 2023
d2c00d0
Merge pull request #121 from PeerPrep/execute
elroygohjy Oct 26, 2023
16cfa05
Disable logging without verbose set
bharathcs Oct 26, 2023
d4fdc8a
Merge pull request #122 from PeerPrep/bhcs/disable-logging
sivayogasubramanian Oct 26, 2023
52e8df4
Fix dotenv
bharathcs Oct 26, 2023
3efeea6
Fix rerender from page
bharathcs Oct 26, 2023
2175606
Use executeCode from within status bar
bharathcs Oct 26, 2023
e53b7c1
Merge pull request #123 from PeerPrep/bhcs/patch
sivayogasubramanian Oct 26, 2023
a2d215f
Read on write only
bharathcs Oct 26, 2023
4660ea3
Merge branch 'master' into bhcs/patch
bharathcs Oct 26, 2023
8cf9afa
Merge pull request #124 from PeerPrep/bhcs/patch
sivayogasubramanian Oct 26, 2023
cdb3635
Update FE to trigger / render close room action
bharathcs Oct 27, 2023
6db0176
Update FE to trigger / render question selection
bharathcs Oct 27, 2023
03cc6b1
Put back dynamic loading of CodeEditor
bharathcs Oct 27, 2023
a8a968a
feat: remove qn modal
kevinchua6 Oct 27, 2023
b701303
feat: add black magic
kevinchua6 Oct 27, 2023
5d1a78a
feat: ajay be
kevinchua6 Oct 27, 2023
ab74aaf
fix: fix lints
kevinchua6 Oct 27, 2023
854af36
Merge branch 'master' into kevin/table
kevinchua6 Oct 27, 2023
3650d19
Merge pull request #126 from PeerPrep/kevin/table
elroygohjy Oct 27, 2023
2df6091
feat: add a bunch of stuff
kevinchua6 Oct 27, 2023
18f0cb2
Merge remote-tracking branch 'origin/master' into bhcs/question-close-fn
bharathcs Oct 27, 2023
3cb44d4
Use firebase in innkeeper
bharathcs Oct 27, 2023
19095ac
Update innkeeper and FE to use firebase
bharathcs Oct 27, 2023
2e510f7
feat: add chat message
elroygohjy Oct 27, 2023
541c9aa
Merge pull request #125 from PeerPrep/bhcs/questions
elroygohjy Oct 27, 2023
c128bca
Merge branch 'feat-message' into bhcs/feat-message
bharathcs Oct 27, 2023
1e69bdc
Fix results tab
bharathcs Oct 27, 2023
3bd81e8
Fix bug with code editor extensions
bharathcs Oct 27, 2023
3af9251
Merge pull request #128 from PeerPrep/bhcs/feat-message
elroygohjy Oct 27, 2023
c0ad251
patch: After exiting, should not update room
bharathcs Oct 27, 2023
c7d7104
Fix user status tooltip message
bharathcs Oct 27, 2023
fc83579
Merge branch 'master' of github.com:PeerPrep/peerprep into ajay/profi…
Manoharan-Ajay-Anand Oct 28, 2023
405bcd9
Merge pull request #100 from PeerPrep/ajay/profile-settings
Manoharan-Ajay-Anand Oct 28, 2023
c3180e6
Revert "Integrate profile settings"
sivayogasubramanian Oct 28, 2023
f68d147
Merge pull request #131 from PeerPrep/revert-100-ajay/profile-settings
sivayogasubramanian Oct 28, 2023
c13c2fe
feat: add question selection (WIP)
elroygohjy Oct 28, 2023
b08e5eb
fix: fix queue not removing user
elroygohjy Oct 28, 2023
2347063
feat: add 30s timeout to q
elroygohjy Oct 28, 2023
da9c146
Merge pull request #133 from PeerPrep/feat-qn
elroygohjy Oct 28, 2023
24066b0
Merge pull request #129 from PeerPrep/bhcs/patch-1
elroygohjy Oct 28, 2023
750201b
fix: fix minor bugs
elroygohjy Oct 28, 2023
f0313cf
Merge pull request #134 from PeerPrep/bug-fix
elroygohjy Oct 28, 2023
40e6889
Correct logging statements
bharathcs Oct 29, 2023
36ce6ea
Merge pull request #135 from PeerPrep/bhcs/patch-1
bharathcs Oct 29, 2023
8027332
Merge branch 'master' into kevin/table
kevinchua6 Oct 29, 2023
5999590
Make title unique
sivayogasubramanian Oct 29, 2023
a190624
Merge pull request #136 from PeerPrep/make-question-title-unique
sivayogasubramanian Oct 29, 2023
a5c6f84
Update
sivayogasubramanian Oct 29, 2023
ab9ead4
Merge pull request #137 from PeerPrep/update-qn-service-deps
sivayogasubramanian Oct 29, 2023
7cdd41e
Update
sivayogasubramanian Oct 29, 2023
1751c2c
Merge pull request #138 from PeerPrep/update-users-service-deps
sivayogasubramanian Oct 29, 2023
eb352ae
chore(deps): bump @uiw/react-codemirror in /frontend
dependabot[bot] Oct 30, 2023
918441e
chore(deps): bump @types/react-dom from 18.2.7 to 18.2.14 in /frontend
dependabot[bot] Oct 30, 2023
d3d15cf
chore(deps): bump bufferutil from 4.0.7 to 4.0.8 in /frontend
dependabot[bot] Oct 30, 2023
bcba840
chore(deps): bump eslint from 8.51.0 to 8.52.0 in /frontend
dependabot[bot] Oct 30, 2023
9669ca8
chore(deps): bump firebase from 10.4.0 to 10.5.2 in /frontend
dependabot[bot] Oct 30, 2023
15a4bf1
feat: do a lot of stuff
kevinchua6 Oct 30, 2023
191b771
Merge branch 'master' into kevin/table
kevinchua6 Oct 30, 2023
20f0fe7
Merge pull request #144 from PeerPrep/bhcs/update-frontend-deps
bharathcs Oct 30, 2023
d194e23
feat: add image to innkeeper
kevinchua6 Oct 30, 2023
bc1e3bb
Style
sivayogasubramanian Oct 31, 2023
38a77e3
Merge pull request #145 from PeerPrep/update-users-service
sivayogasubramanian Oct 31, 2023
4af6f68
Edit endpoint
sivayogasubramanian Oct 31, 2023
2666839
Merge pull request #146 from PeerPrep/update-users-service
sivayogasubramanian Oct 31, 2023
b7563c8
feat: add table matching page, add toasts for everything, mark as
kevinchua6 Nov 1, 2023
4621461
Add lang / execution sync
bharathcs Nov 1, 2023
d227516
chore: fix type error
kevinchua6 Nov 1, 2023
92a86b5
change questionid to string
Manoharan-Ajay-Anand Nov 1, 2023
ed26aa8
allow delete profile
Manoharan-Ajay-Anand Nov 1, 2023
4435939
Merge pull request #147 from PeerPrep/bhcs/require-matching
elroygohjy Nov 1, 2023
157e702
wrap in transaction
Manoharan-Ajay-Anand Nov 1, 2023
8e22d5a
Merge branch 'master' of github.com:PeerPrep/peerprep into ajay/delet…
Manoharan-Ajay-Anand Nov 1, 2023
19a73be
feat: profile delete
kevinchua6 Nov 1, 2023
d1513fd
Merge pull request #148 from PeerPrep/ajay/delete-profile-users-service
Manoharan-Ajay-Anand Nov 1, 2023
e5875e0
Merge branch 'master' of github.com:PeerPrep/peerprep into kevin/table
elroygohjy Nov 1, 2023
96ebdf3
fix: fix ui
elroygohjy Nov 1, 2023
78a7882
Merge pull request #130 from PeerPrep/kevin/table
elroygohjy Nov 1, 2023
2d36905
Patch the execute problem
bharathcs Nov 1, 2023
0cdabaf
Merge pull request #149 from PeerPrep/bhcs/pathc-1
sivayogasubramanian Nov 1, 2023
da41099
fix error message
Manoharan-Ajay-Anand Nov 1, 2023
c698a62
Merge pull request #151 from PeerPrep/ajay/executor-service-fix-error…
Manoharan-Ajay-Anand Nov 1, 2023
32ec8e4
Add new endpoint
sivayogasubramanian Nov 1, 2023
3d17785
Update docker-compose.yml
sivayogasubramanian Nov 1, 2023
c7d9ea5
Merge pull request #152 from PeerPrep/questions-service-serverless-up…
sivayogasubramanian Nov 1, 2023
04d37d2
Update index.ts
sivayogasubramanian Nov 1, 2023
726677b
Merge pull request #153 from PeerPrep/sivayogasubramanian-patch-1
sivayogasubramanian Nov 1, 2023
9e5a543
fix: fix bugs and add noti on queue timeout
elroygohjy Nov 3, 2023
d2cf336
Merge pull request #154 from PeerPrep/queue-noti
elroygohjy Nov 3, 2023
d7dda82
feat: log user out when delete profile
kevinchua6 Nov 3, 2023
2ae1555
feat: reload
kevinchua6 Nov 3, 2023
44805d9
Merge branch 'master' into kevin/table
kevinchua6 Nov 3, 2023
a02f591
feat: fix table logic
kevinchua6 Nov 3, 2023
dfe7977
Merge pull request #155 from PeerPrep/kevin/table
sivayogasubramanian Nov 5, 2023
4058963
chore(deps): bump jotai from 2.4.3 to 2.5.1 in /frontend
dependabot[bot] Nov 6, 2023
7f3f773
chore(deps): bump @types/react from 18.2.31 to 18.2.35 in /frontend
dependabot[bot] Nov 6, 2023
53faebb
chore(deps): bump eslint from 8.52.0 to 8.53.0 in /frontend
dependabot[bot] Nov 6, 2023
93d0bbb
fix: fix bugs
elroygohjy Nov 6, 2023
9191630
Merge pull request #167 from PeerPrep/elroy-bug-fixes
elroygohjy Nov 6, 2023
40c1bd8
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
bharathcs Nov 6, 2023
43471b3
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
bharathcs Nov 6, 2023
1c8a4dc
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/frontend…
bharathcs Nov 6, 2023
0c78a3d
Merge pull request #168 from PeerPrep/bhcs/merge-deps
bharathcs Nov 6, 2023
440a3f5
Patch auth code
bharathcs Nov 6, 2023
660fb1d
Merge pull request #169 from PeerPrep/bhcs/fix-401
bharathcs Nov 6, 2023
b0923b3
Fix more codes
bharathcs Nov 6, 2023
26a591a
Merge pull request #170 from PeerPrep/bhcs/fix-401
bharathcs Nov 6, 2023
c17d6d7
Tag each console log in innkeeper
bharathcs Nov 6, 2023
835e763
Deploy Locally
sivayogasubramanian Nov 6, 2023
ee1ce2e
fix: fix portal and landing bug
elroygohjy Nov 7, 2023
fe07524
Merge pull request #174 from PeerPrep/elroy-bug-fixes
elroygohjy Nov 7, 2023
64a13d3
feat: add notification when same email
kevinchua6 Nov 7, 2023
a56352a
Update
sivayogasubramanian Nov 6, 2023
b2dcf1e
Merge pull request #173 from PeerPrep/deploy-local
sivayogasubramanian Nov 7, 2023
47cac80
Update README.md
sivayogasubramanian Nov 7, 2023
afb44e9
Merge pull request #176 from PeerPrep/deploy-local
sivayogasubramanian Nov 7, 2023
30b82bc
Merge pull request #175 from PeerPrep/kevin/new
sivayogasubramanian Nov 7, 2023
7e49c0c
feat: add error msg for duplicate qn names
kevinchua6 Nov 7, 2023
fd18888
chore: remove console.logs
kevinchua6 Nov 7, 2023
639531f
update profile delete mechanism
Manoharan-Ajay-Anand Nov 7, 2023
5e7cb1b
Merge pull request #178 from PeerPrep/ajay/fix-profile-deletion
Manoharan-Ajay-Anand Nov 7, 2023
4fd5680
Merge pull request #177 from PeerPrep/kevin/new
sivayogasubramanian Nov 7, 2023
8c56f4f
Update deployment
sivayogasubramanian Nov 8, 2023
2dd205f
Merge pull request #179 from PeerPrep/deploy-local
sivayogasubramanian Nov 8, 2023
2ee79e6
WIP
bharathcs Nov 8, 2023
f05850a
fix: fix logical bugs
elroygohjy Nov 8, 2023
77359af
Merge pull request #180 from PeerPrep/elroy-final-bugfixes
sivayogasubramanian Nov 8, 2023
8a8929c
Revert "fix: fix logical bugs"
sivayogasubramanian Nov 8, 2023
dde1851
Make status bar fixed
sivayogasubramanian Nov 8, 2023
f23cf6d
Merge pull request #181 from PeerPrep/revert-180-elroy-final-bugfixes
sivayogasubramanian Nov 8, 2023
65f364f
fix: fix UI divider between code and panes
elroygohjy Nov 9, 2023
52362c4
Merge pull request #182 from PeerPrep/elroy-ui-fix
sivayogasubramanian Nov 9, 2023
58094b2
update local executor dockerfile
Manoharan-Ajay-Anand Nov 9, 2023
7d97c04
Merge branch 'master' of github.com:PeerPrep/peerprep into ajay/updat…
Manoharan-Ajay-Anand Nov 9, 2023
976494f
update readme and production dockerfile
Manoharan-Ajay-Anand Nov 9, 2023
3ebce12
Merge pull request #183 from PeerPrep/ajay/update-executor-dockerfile
Manoharan-Ajay-Anand Nov 9, 2023
81cf79d
Merge branch 'master' into bhcs/fix-logs
bharathcs Nov 9, 2023
0ed673b
Merge pull request #171 from PeerPrep/bhcs/fix-logs
elroygohjy Nov 9, 2023
04cf216
Add logging var
bharathcs Nov 9, 2023
df0eb63
Merge pull request #184 from PeerPrep/bhcs/logg
sivayogasubramanian Nov 9, 2023
6518bb8
wip
bharathcs Nov 11, 2023
631dda2
Complete logic for A6
bharathcs Nov 11, 2023
1a941de
Finish up serverless logic
bharathcs Nov 11, 2023
ef03243
Init firebase
bharathcs Nov 11, 2023
d3d2d31
Update functions
bharathcs Nov 11, 2023
1653bc6
Fix firebase error
bharathcs Nov 11, 2023
13bb01f
Update .env for questions
bharathcs Nov 11, 2023
26deb1d
Update vars
bharathcs Nov 11, 2023
b0da66c
Merge remote-tracking branch 'origin/master' into bhcs/add-serverless…
bharathcs Nov 11, 2023
aab40c8
Merge pull request #150 from PeerPrep/bhcs/add-serverless-logic
bharathcs Nov 11, 2023
9c3cd89
Trigger docker re-up
bharathcs Nov 11, 2023
54d73ee
Merge branch 'master' into bhcs/add-serverless-logic
bharathcs Nov 11, 2023
c521dfd
Merge pull request #186 from PeerPrep/bhcs/add-serverless-logic
bharathcs Nov 11, 2023
75b62bd
Fix nginx config
bharathcs Nov 11, 2023
35b0604
Merge pull request #187 from PeerPrep/bhcs/add-serverless-logic
bharathcs Nov 11, 2023
01b90ef
Change the header to avoid underscoes
bharathcs Nov 12, 2023
c428049
Merge pull request #188 from PeerPrep/bhcs/add-serverless-logic
sivayogasubramanian Nov 12, 2023
897ecb6
Update README and env files
sivayogasubramanian Nov 12, 2023
7f6e010
Update README.md
sivayogasubramanian Nov 12, 2023
d69061e
Update README.md
sivayogasubramanian Nov 15, 2023
71996fe
Update README.md
sivayogasubramanian Nov 15, 2023
1edf95f
Add project report
sivayogasubramanian Nov 15, 2023
00a849e
add deadline
github-classroom[bot] Nov 18, 2023
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
9 changes: 9 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
POSTGRES_USER=peerprep
POSTGRES_PASSWORD=somepassword
GOOGLE_APPLICATION_CREDENTIALS=/firebase-auth/service-account.json
MONGODB_URL=mongodb://peerprep-mongo:27017/questions
BUCKET_NAME=peerprep-test.appspot.com
USERS_SERVICE_URL=http://peerprep-users-service:6969
POSTGRES_URL=postgres://peerprep:somepassword@peerprep-postgres/peerprep
INITIALIZATION_VECTOR=vector
ENCRYPTION_KEY=key
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/frontend"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/questions"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/users"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/innkeeper"
schedule:
interval: "weekly"
205 changes: 205 additions & 0 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
name: Build Docker Images

on:
workflow_dispatch:
push:
branches:
- master

env:
USERS_IMAGE_NAME: peerprep-users-service
EXECUTOR_IMAGE_NAME: peerprep-executor-service
INNKEEPER_IMAGE_NAME: peerprep-innkeeper-service
QUESTIONS_IMAGE_NAME: peerprep-questions-service
FRONTEND_IMAGE_NAME: peerprep-frontend
NGINX_IMAGE_NAME: peerprep-nginx

jobs:
changes:
runs-on: ubuntu-latest
outputs:
users: ${{ steps.changes.outputs.users }}
executor: ${{ steps.changes.outputs.executor }}
innkeeper: ${{ steps.changes.outputs.innkeeper }}
questions: ${{ steps.changes.outputs.questions }}
frontend: ${{ steps.changes.outputs.frontend }}
nginx: ${{ steps.changes.outputs.nginx }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
users:
- 'users/**/*'
executor:
- 'executor/**/*'
innkeeper:
- 'innkeeper/**/*'
questions:
- 'questions/**/*'
frontend:
- 'frontend/**/*'
nginx:
- 'deployment/**/*'

build-users-image:
needs: changes
if: ${{ needs.changes.outputs.users == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Source
uses: actions/checkout@v2
- name: Log in to the Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: peerprep
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile-users
push: true
tags: ghcr.io/peerprep/${{ env.USERS_IMAGE_NAME }}:latest

build-executor-image:
needs: changes
if: ${{ needs.changes.outputs.executor == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Source
uses: actions/checkout@v2
with:
submodules: recursive
- name: Log in to the Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: peerprep
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile-executor
push: true
tags: ghcr.io/peerprep/${{ env.EXECUTOR_IMAGE_NAME }}:latest

build-innkeeper-image:
needs: changes
if: ${{ needs.changes.outputs.innkeeper == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Source
uses: actions/checkout@v2
- name: Log in to the Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: peerprep
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile-innkeeper
push: true
tags: ghcr.io/peerprep/${{ env.INNKEEPER_IMAGE_NAME }}:latest

build-questions-image:
needs: changes
if: ${{ needs.changes.outputs.questions == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Source
uses: actions/checkout@v2
- name: Log in to the Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: peerprep
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile-questions
push: true
tags: ghcr.io/peerprep/${{ env.QUESTIONS_IMAGE_NAME }}:latest

build-frontend-image:
needs: changes
if: ${{ needs.changes.outputs.frontend == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Source
uses: actions/checkout@v2
- name: Make Environment File
uses: SpicyPizza/[email protected]
with:
envkey_NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
envkey_NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
envkey_NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
envkey_NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
envkey_NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
envkey_NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
envkey_NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GOOGLE_CLIENT_ID }}
envkey_NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
envkey_NEXT_PUBLIC_PEERPREP_INNKEEPER_SOCKET_URL: ${{ secrets.NEXT_PUBLIC_PEERPREP_INNKEEPER_SOCKET_URL }}
directory: frontend
file_name: .env
fail_on_empty: true
- name: Log in to the Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: peerprep
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile-frontend
push: true
tags: ghcr.io/peerprep/${{ env.FRONTEND_IMAGE_NAME }}:latest

build-nginx-image:
needs: changes
if: ${{ needs.changes.outputs.nginx == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Source
uses: actions/checkout@v2
- name: Log in to the Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: peerprep
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile-nginx
push: true
tags: ghcr.io/peerprep/${{ env.NGINX_IMAGE_NAME }}:latest
82 changes: 82 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Build

on:
push:
branches:
- master
pull_request:

jobs:
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/cache@v2
with:
path: frontend/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('frontend/**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
working-directory: frontend
- run: yarn build
working-directory: frontend
env:
NEXT_PUBLIC_FIREBASE_API_KEY: ${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}
NEXT_PUBLIC_FIREBASE_APP_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}
NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GOOGLE_CLIENT_ID }}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID }}
NEXT_PUBLIC_PEERPREP_INNKEEPER_SOCKET_URL: ${{ secrets.NEXT_PUBLIC_PEERPREP_INNKEEPER_SOCKET_URL }}

build-questions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/cache@v2
with:
path: questions/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('questions/**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
working-directory: questions
- run: yarn build
working-directory: questions

build-users:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/cache@v2
with:
path: users/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('users/**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
working-directory: users
- run: yarn build
working-directory: users

build-innkeeper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/cache@v2
with:
path: innkeeper/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('innkeeper/**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
working-directory: innkeeper
- run: yarn build
working-directory: innkeeper
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
firebase-auth/*.json
mongodb-data
postgres-data
.env
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "executor/libs/cppevent-base"]
path = executor/libs/cppevent-base
url = https://github.com/Manoharan-Ajay-Anand/cppevent-base.git
[submodule "executor/libs/cppevent-net"]
path = executor/libs/cppevent-net
url = https://github.com/Manoharan-Ajay-Anand/cppevent-net.git
[submodule "executor/libs/cppevent-fcgi"]
path = executor/libs/cppevent-fcgi
url = https://github.com/Manoharan-Ajay-Anand/cppevent-fcgi.git
20 changes: 20 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/executor/libs/cppevent-base/src",
"${workspaceFolder}/executor/libs/cppevent-net/src",
"${workspaceFolder}/executor/libs/cppevent-fcgi/src",
"${workspaceFolder}/executor/src"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.cpptools"
}
],
"version": 4
}
Loading
Loading