Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
e23a211
Finished Get meal plan
Eric-Studley May 13, 2024
b6fc741
Fixed meal plan api
Eric-Studley May 13, 2024
227ebbd
Merge pull request #36 from KeepLimo/feature/AIintegration
blaz2f May 14, 2024
c9ce81a
Merge pull request #24 from Gopher-Industries/feature/mealplan
blaz2f May 14, 2024
70f542c
Updated OpenAPI 3.0 spec to include all completed endpoints.
sicsixdkn May 15, 2024
e910520
Create README.md
sicsixdkn May 16, 2024
6b8f4b7
Merge pull request #37 from Gopher-Industries/feature/api-spec-swagger
sicsixdkn May 17, 2024
5ec2f27
Changed API spec for user preferences to be POST instead of PUT to ma…
sicsixdkn May 20, 2024
be62d8f
Merge pull request #38 from Gopher-Industries/feature/fix-user-prefs
blaz2f May 23, 2024
f6ed15f
Create API_PatchNotes.yaml
Aug 2, 2024
876e295
Create Logging.json
Aug 2, 2024
08d6fb3
first unit test
cjvrd Aug 4, 2024
027018b
Added recipe image saving and retrieval
Eric-Studley Aug 7, 2024
87dd2a8
Create Vulnerability_V1.0.py
Aug 8, 2024
8bb420c
Merge pull request #42 from Gopher-Industries/Vulnerability
cjvrd Aug 8, 2024
199e810
Merge branch 'master' into unit-testing
cjvrd Aug 8, 2024
9333153
login and signup API tests, sign up bugfix, added deleteUser function
cjvrd Aug 18, 2024
331bd84
appointment test
cjvrd Aug 18, 2024
6a5f071
Merge pull request #41 from Gopher-Industries/feature/recipe-image
cjvrd Aug 19, 2024
eb9c428
Merge branch 'master' into unit-testing
cjvrd Aug 19, 2024
1d87acc
bugfix if image isnt included in the payload
Eric-Studley Aug 19, 2024
5563efd
contact us test and recipe tests
cjvrd Aug 19, 2024
c56d763
naming convention for all tests
cjvrd Aug 19, 2024
db6f957
Added unit tests for user feedback, user profile and user preferences
Eric-Studley Aug 22, 2024
dfd1848
Merge pull request #43 from Gopher-Industries/feature/recipe-image
Eric-Studley Aug 22, 2024
7b429f3
Merge pull request #44 from Gopher-Industries/unit-testing-eric
cjvrd Aug 22, 2024
272109d
completed all api tests
cjvrd Aug 23, 2024
5e3ab05
removed old comments
cjvrd Aug 23, 2024
8419232
Merge pull request #45 from Gopher-Industries/unit-testing
cjvrd Aug 24, 2024
8f300d7
Create Vulnerability_Scanner_V1.1.py
Sep 4, 2024
e73d9c1
Create Vulnerability Report.docx
Sep 4, 2024
69bc46a
Merge pull request #46 from Gopher-Industries/Vulnerability
cjvrd Sep 4, 2024
227cecd
allergy and dislike triggers were added for recipe relation table
blaz2f Sep 4, 2024
01eda14
Merge pull request #47 from Gopher-Industries/feature/meal-plan-upgra…
cjvrd Sep 6, 2024
76cf38b
updated sign up API as well as some refactoring
cjvrd Sep 6, 2024
e1ba14e
User feedback API endpoint: add user id and set up relationship in da…
Eric-Studley Sep 6, 2024
8a50d45
Create PatchNotes_VersionControl.yaml
Sep 6, 2024
2bbdccd
Merge pull request #48 from Gopher-Industries/signup-update
cjvrd Sep 6, 2024
9e01d42
created and populated relation table, upgraded get meal planning end …
blaz2f Sep 6, 2024
89965bf
get all meal plans by user id
blaz2f Sep 10, 2024
20b2168
updated swagger doc with API changes
cjvrd Sep 10, 2024
edea9af
no message
Eric-Studley Sep 11, 2024
cff5c26
Add user images
Eric-Studley Sep 12, 2024
d4b9c0f
create change password API
blaz2f Sep 13, 2024
1479c35
update messages
blaz2f Sep 13, 2024
a94a6da
update message formatting
blaz2f Sep 13, 2024
ba342eb
no message
Eric-Studley Sep 13, 2024
7d5022c
Merge pull request #39 from CodeNinja4Git/Version-Control
blaz2f Sep 13, 2024
c47d529
Merge pull request #40 from CodeNinja4Git/Monitoring&Logging
blaz2f Sep 13, 2024
52bf75a
Merge pull request #49 from Gopher-Industries/db-improvments
blaz2f Sep 13, 2024
f3adaf7
Merge pull request #50 from Gopher-Industries/VersionControl
blaz2f Sep 13, 2024
01f97ef
Merge pull request #51 from Gopher-Industries/feature/meal-planning-r…
blaz2f Sep 13, 2024
3f07f1f
Merge pull request #52 from Gopher-Industries/signup-update
blaz2f Sep 13, 2024
4281d9c
Merge pull request #53 from Gopher-Industries/feature/user-image
blaz2f Sep 13, 2024
e8382bf
Merge pull request #54 from Gopher-Industries/feature/change-password
blaz2f Sep 13, 2024
2449e03
Create Identified Vulnerabilities Report.docx
Sep 19, 2024
6b9fa3e
Update README.md
Sep 19, 2024
86bdc2d
Merge pull request #57 from Gopher-Industries/Vulnerability
cjvrd Sep 20, 2024
9ecc4f4
Merge pull request #58 from Gopher-Industries/README
cjvrd Sep 20, 2024
a1f033a
Update imageClassification.js
Sep 21, 2024
ea7af6a
Update loginController.js
Sep 21, 2024
b1dce7d
Update Identified Vulnerabilities Report.docx
Sep 21, 2024
72d5192
updated recipe API and bug fixes
cjvrd Sep 25, 2024
4767c38
Merge pull request #62 from Gopher-Industries/update-recipe-api
cjvrd Sep 25, 2024
421a71d
Merge pull request #61 from Gopher-Industries/Vulnerability
cjvrd Sep 25, 2024
69cd373
Merge pull request #60 from Gopher-Industries/ImageClassification
cjvrd Sep 25, 2024
45782be
Merge pull request #59 from Gopher-Industries/Controller
cjvrd Sep 25, 2024
e5c5a0e
Update Vulnerability Report.docx
Sep 25, 2024
a79d9cd
Update PatchNotes_VersionControl.yaml
Sep 25, 2024
9e1c041
Merge pull request #64 from Gopher-Industries/VersionControl
cjvrd Oct 2, 2024
307cf43
Merge pull request #63 from Gopher-Industries/Vulnerability
cjvrd Oct 2, 2024
9e7ebf5
adding new feature notification
valenLIU0214 Nov 15, 2024
76616ae
Ignore .vs directory
valenLIU0214 Nov 15, 2024
0e06607
notification-api adding
valenLIU0214 Nov 15, 2024
81bf56c
modifiying index.yaml
valenLIU0214 Nov 15, 2024
cc65f5e
modifiying server.js
valenLIU0214 Nov 15, 2024
ab00aa8
feat: function for marking notification as read
Nov 16, 2024
47e824c
Create Vulnerability_Scanner_V1.2.py
Nov 23, 2024
0f0a0b6
Merge pull request #66 from Gopher-Industries/Vulnerability
CodeNinja4Git Nov 23, 2024
00efc7f
recipe image predictor api
cjvrd Nov 24, 2024
4d65984
Merge branch 'master' into recipe-image-predictor
cjvrd Nov 24, 2024
29b6822
Merge pull request #67 from Gopher-Industries/feature/notification-api
CodeNinja4Git Nov 25, 2024
c4e415a
recipe image classification api bugs resolved
cjvrd Nov 28, 2024
ca26f8e
Merge branch 'master' into recipe-image-predictor
cjvrd Nov 28, 2024
a72ffd7
added error handling and started writing tests
cjvrd Nov 30, 2024
bd9e653
Merge pull request #68 from Gopher-Industries/recipe-image-predictor
CodeNinja4Git Nov 30, 2024
71153ce
updated error handling to only allow image filetypes and finished tests
cjvrd Dec 5, 2024
7046fad
Merge pull request #69 from Gopher-Industries/recipe-image-predictor
CodeNinja4Git Dec 5, 2024
525ebaf
A new search bar function has been added to the backend - MI CHEN
MICHEN0808 Dec 8, 2024
319e8a1
Merge pull request #70 from Gopher-Industries/MICHEN
CodeNinja4Git Dec 8, 2024
05cdfc6
newest update on filter-api to add validation on typing error
valenLIU0214 Dec 10, 2024
afea909
Merge pull request #71 from Gopher-Industries/filter-api-adjust
CodeNinja4Git Dec 10, 2024
1a71fa7
Create Vulnerability_Scanner_V1.3.py
Dec 15, 2024
1e637ad
Merge pull request #72 from Gopher-Industries/Vulnerability
CodeNinja4Git Dec 15, 2024
ae3a8d4
Update Vulnerability_Scanner_V1.3.py
Dec 15, 2024
0ba7ec4
Merge pull request #73 from Gopher-Industries/Vulnerability
CodeNinja4Git Dec 15, 2024
d72c785
Add login logging API and authController
Mar 23, 2025
4ea85aa
Merge pull request #76 from Gopher-Industries/login-logging-feature
valenLIU0214 Mar 24, 2025
07485da
Add max cost estimation and refine API
TUT888 Mar 27, 2025
a8c27c1
Update IS Model
yuwei-zhui Apr 3, 2025
a42dfa5
Optimize IS Controller
zeyu-linn Apr 3, 2025
8bbc1d5
Add IS routes and Test
yuwei-zhui Apr 3, 2025
2d6d92f
Update test-helpers.js
yuwei-zhui Apr 3, 2025
6979aa7
Optimize the query logic for ingredients substitution API
zeyu-linn Apr 3, 2025
945db42
Merge branch 'master' into zeyu/ingredient-substituion
zeyu-linn Apr 3, 2025
e67ff50
Merge pull request #79 from yuwei-zhui/zhui/routes
valenLIU0214 Apr 3, 2025
8bbd674
Merge pull request #80 from zeyu-linn/zeyu/ingredient-substituion
valenLIU0214 Apr 3, 2025
45035fb
Test recipe cost feature and fix some error handling bugs
TUT888 Apr 3, 2025
7d02cdf
Merge pull request #81 from TUT888/feature/cost-estimation
valenLIU0214 Apr 3, 2025
eb52657
Set up vulnerability scanning workflow with GitHub Actions
kundanr2 Apr 4, 2025
5ed12fa
Add requirements.txt for vulnerability scanner setup
kundanr2 Apr 4, 2025
6f3439f
Merge pull request #83 from kundanr2/vuln-scanner-ci
valenLIU0214 Apr 4, 2025
a0b5934
test file added
madhavi2809 Apr 6, 2025
ee08670
test file added
madhavi2809 Apr 6, 2025
0494b58
scanning file updated to scan txt and yml files
madhavi2809 Apr 6, 2025
2b5fdba
Merge pull request #85 from madhavi2809/Security
valenLIU0214 Apr 6, 2025
1385988
Add JWT Authentication for Upload API
Apr 6, 2025
922b90e
au.env
amrutha1706 Apr 7, 2025
8cfb71d
jwt package.json
amrutha1706 Apr 7, 2025
b52a574
jwt server.js
amrutha1706 Apr 7, 2025
0c3d4fd
jwt routes.js
amrutha1706 Apr 7, 2025
0ca7bc1
jwt middleware.js
amrutha1706 Apr 7, 2025
0be673f
jwt users.js
amrutha1706 Apr 7, 2025
464ba3f
Merge pull request #86 from Gopher-Industries/Jwt-authentication
valenLIU0214 Apr 10, 2025
dfa6ffb
init ai-integration api structure
TUT888 Apr 10, 2025
62d1dd0
init new route and refactor code for customized rce
TUT888 Apr 11, 2025
dff7fc8
Added security headers using helmet
madhavi2809 Apr 11, 2025
04b2893
Merge pull request #87 from TUT888/feature/ai-api-integration
valenLIU0214 Apr 11, 2025
b091942
Merge pull request #88 from madhavi2809/Security
valenLIU0214 Apr 11, 2025
836263a
update option for excluding ingredients in RCE
TUT888 Apr 12, 2025
0b66ad9
completed testing and fixed bugs for excluding ingredients in rce fea…
TUT888 Apr 19, 2025
b4fc336
complated refactor rce api: update controller, swagger ui, testing file
TUT888 Apr 19, 2025
2214cfc
feat: add update-by-identifier route and controller for user profile …
Apr 20, 2025
1450141
input validation implemented for login, signup and appointments
madhavi2809 Apr 20, 2025
839cab0
input validation implemented for contact us endpoint
madhavi2809 Apr 20, 2025
d9ba7e5
corrected some errors in input validation
madhavi2809 Apr 20, 2025
d6fdfb5
corrected some errors in input validation
madhavi2809 Apr 20, 2025
8bb2af7
FileValidation
Tanya2209 Apr 20, 2025
dd1ec59
changing in index.js
valenLIU0214 Apr 26, 2025
3cf9abc
merge
valenLIU0214 Apr 26, 2025
422dac7
implemented input validation for feedback endpoint
madhavi2809 Apr 27, 2025
0149d53
implemented input validation for meal plan and recipe
madhavi2809 Apr 27, 2025
1271a5e
Basic recipe scaling to ingredient quantity
TUT888 May 1, 2025
9d4b06c
Health article search function
xsc224387468 May 2, 2025
6298735
optimize Model part of Ingredient Substitution API
zeyu-linn May 2, 2025
60af898
Update: user profile controller improvements
May 2, 2025
5f13c42
Resolved conflict in routes/index.js: finalized upload route
May 2, 2025
d01f824
Enhanced Cost Estimation - Exclude unwanted ingredients (#89)
TUT888 May 2, 2025
b5c8fed
Implemented input validation for login, signup, appointments and cont…
madhavi2809 May 2, 2025
b3ebb48
Merge branch 'master' into feature/update-user-profile
justinkkk626 May 2, 2025
a69b327
Merge branch 'master' into feature/healtharticle-api
xsc224387468 May 2, 2025
3e1f729
Merge pull request #91 from Gopher-Industries/Tanya_CyberTeam_FileVal…
valenLIU0214 May 2, 2025
4824d8b
Merge branch 'master' into nutritionlog
valenLIU0214 May 2, 2025
5702f6c
Merge pull request #92 from Gopher-Industries/nutritionlog
justinkkk626 May 2, 2025
e917e41
Merge pull request #95 from zeyu-linn/zeyu_ingrendient_substitution
justinkkk626 May 2, 2025
9a3d47a
Merge branch 'master' into feature/healtharticle-api
justinkkk626 May 2, 2025
6296e8f
Merge pull request #94 from xsc224387468/feature/healtharticle-api
justinkkk626 May 2, 2025
30a82d5
Merge branch 'master' into feature/update-user-profile
valenLIU0214 May 2, 2025
967e134
Merge pull request #96 from Gopher-Industries/feature/update-user-pro…
valenLIU0214 May 2, 2025
70771c7
fixing the bug in index.yaml file
valenLIU0214 May 6, 2025
083f43a
Added global and route-specific rate limiting
kundanr2 May 6, 2025
5c4f4e6
Merge pull request #97 from Gopher-Industries/fixing-yaml-file
justinkkk626 May 6, 2025
8d0d747
feat: implement brute-force protection
kundanr2 May 6, 2025
a3df97a
Merge pull request #98 from kundanr2/Rate_limiting
valenLIU0214 May 6, 2025
fbcd43c
Merge pull request #99 from kundanr2/Brute_Force
valenLIU0214 May 6, 2025
6fdf4dd
RateLimiter
Tanya2209 May 8, 2025
adfed29
preferences
madhavi2809 May 8, 2025
7ab7ecc
pull lastest update and resolve conflict in index.yaml and routes.js
TUT888 May 9, 2025
07af733
commits removed
madhavi2809 May 9, 2025
943441e
Merge pull request #101 from madhavi2809/Security
valenLIU0214 May 9, 2025
60f62d4
Merge pull request #100 from Gopher-Industries/Tanya_CyberTeam_RateLi…
valenLIU0214 May 9, 2025
3c4a843
Resolved merge conflicts in routes/index.js
May 9, 2025
820012d
Added water intake tracker endpoint with increment and decrement logic
May 9, 2025
a9449c0
Create Health News API
zeyu-linn May 10, 2025
08ad9fb
input validation completed for 11 endpoints
madhavi2809 May 10, 2025
8f7c588
Created paths and schemas for the AI models
madhavi2809 May 10, 2025
6ddc893
Restructure and optimize Recipe Image Classification API
yuwei-zhui May 10, 2025
10fc5f1
complete testing for basic recipe scaling
TUT888 May 11, 2025
acf9153
Merge branch 'Gopher-Industries:master' into recipe-scaling
TUT888 May 11, 2025
3ea3a7f
Add chatbot error handling logic and middleware
xsc224387468 May 11, 2025
27412a3
Merge pull request #102 from Gopher-Industries/feature/water-intake-t…
valenLIU0214 May 11, 2025
a41fa32
Merge branch 'master' into zeyu_Health_News_API
zeyu-linn May 12, 2025
cfbf289
complete AI integration with AI API call
TUT888 May 14, 2025
d3d92fa
Merge branch 'Gopher-Industries:master' into feature/ai-api-integration
TUT888 May 14, 2025
fe52894
fix route issue, remove obesity endpoint
TUT888 May 15, 2025
d490c3b
Merge pull request #108 from TUT888/feature/ai-api-integration
justinkkk626 May 15, 2025
2637cfb
Merge branch 'master' into recipe-scaling
justinkkk626 May 15, 2025
c82ba33
Merge pull request #106 from TUT888/recipe-scaling
justinkkk626 May 15, 2025
ad012d0
Merge pull request #105 from yuwei-zhui/yuwei/image-identification
justinkkk626 May 15, 2025
bcd4e64
Merge branch 'master' into zeyu_Health_News_API
zeyu-linn May 15, 2025
a228c6c
Merge branch 'master' into feature/chatbot-error-handling
justinkkk626 May 15, 2025
8ba1933
Merge pull request #107 from xsc224387468/feature/chatbot-error-handling
justinkkk626 May 15, 2025
ec8eae5
Merge branch 'master' into validation
justinkkk626 May 15, 2025
4d2a963
Merge pull request #104 from madhavi2809/validation
justinkkk626 May 15, 2025
9f30039
Merge branch 'master' into zeyu_Health_News_API
justinkkk626 May 15, 2025
d9bbdd6
Merge pull request #103 from zeyu-linn/zeyu_Health_News_API
justinkkk626 May 15, 2025
ef4b0ef
Update configuration file of Image Classification API
yuwei-zhui May 15, 2025
612da17
Undo Revert
yuwei-zhui May 17, 2025
42354cb
Revert "Undo Revert"
yuwei-zhui May 17, 2025
ed880c6
Fix the error in newest pull request
yuwei-zhui May 17, 2025
664ce11
Fix syntax error in Recipe Image Classification API
yuwei-zhui May 17, 2025
8a24cef
Merge pull request #110 from yuwei-zhui/yuwei-pr-branch
justinkkk626 May 24, 2025
ce74b19
feat: fix the water intake tracker error
May 24, 2025
94de2ac
Merge pull request #111 from Gopher-Industries/fix/water-intake-error
DishaChahal May 24, 2025
da88fd5
fixed requirements.txt
madhavi2809 Jul 27, 2025
fec729e
fixed requirements.txt
madhavi2809 Jul 27, 2025
dd2addc
fixed requirements.txt
madhavi2809 Jul 27, 2025
fb1902e
Update README.md
madhavi2809 Jul 27, 2025
4b890c4
Merge pull request #112 from madhavi2809/Cyber-branch
TUT888 Jul 27, 2025
bfb4929
Merge pull request #113 from madhavi2809/master
TUT888 Jul 27, 2025
2a26456
Support functions Separated
Jul 29, 2025
3703363
All Support Functions in separate file
Jul 29, 2025
e441949
Finally done with the Separate function
Jul 29, 2025
dfa8daa
Created new Model for functionality
Jul 29, 2025
c1e86b5
added audit-logs for user logins
madhavi2809 Aug 2, 2025
b75af21
Merge branch 'master' into Feature
TUT888 Aug 2, 2025
364918a
Merge pull request #115 from Abhimanyu2016019/Feature
TUT888 Aug 2, 2025
cb01879
fix incorrect error response of recipe cost estimation api
TUT888 Aug 2, 2025
3f00e97
fix endpoint /recipe/cost in SwaggerUI
TUT888 Aug 2, 2025
2b6e866
added audit-logs for user logins and account creation
madhavi2809 Aug 2, 2025
13b6521
EmailAlerts
Tanya2209 Aug 2, 2025
137b958
edited code
madhavi2809 Aug 2, 2025
a1f43dc
minor change
madhavi2809 Aug 2, 2025
014a0f9
update cost estimation with flexibility in measurement
TUT888 Aug 3, 2025
ffb8940
update flexible ingredients quantity calculation (original or scaled)…
TUT888 Aug 3, 2025
bc1f7ac
implement cost estimation for scaled recipe
TUT888 Aug 3, 2025
0429ead
merge full and partial cost estimation into 1 route with optional que…
TUT888 Aug 3, 2025
c99d8c9
update unit testing for new unified cost estimation route
TUT888 Aug 3, 2025
b34ce9f
updated logger
madhavi2809 Aug 4, 2025
892843b
Merge pull request #116 from madhavi2809/Audit-logs
TUT888 Aug 5, 2025
485504e
Merge pull request #117 from TUT888/t2-enhanced-cost-estimation
madhavi2809 Aug 6, 2025
ab36d93
Merge branch 'master' into Tanya_Cyber_Failed_Login_Email
madhavi2809 Aug 6, 2025
39d5bcf
RBAC: add authorizeRoles middleware and protect /upload route
kundanr2 Aug 10, 2025
8f1acaf
Merge pull request #118 from Gopher-Industries/Tanya_Cyber_Failed_Log…
TUT888 Aug 11, 2025
efc8ec5
Merge pull request #119 from kundanr2/feat/rbac-upload-protection
madhavi2809 Aug 13, 2025
6f3c12a
SignupFunctionality
chaya221071557 Aug 19, 2025
80b76a0
Merge pull request #121 from Gopher-Industries/chaya_signupfunctional…
TUT888 Aug 20, 2025
19f5a47
Initial placeholder for email verification utility
elanlaw1206 Jul 26, 2025
22722b0
Implement email verification API with Supabase token logic
elanlaw1206 Aug 8, 2025
2dcbf48
feat(email-verification): add verify route, sendVerification util, au…
elanlaw1206 Aug 29, 2025
385467a
feat: add dev verify route for demo
elanlaw1206 Aug 29, 2025
37a571d
feat(email-verification): add dev verify route, sendVerification util…
elanlaw1206 Aug 29, 2025
199f631
feat(email-verification): add supabaseAdmin server-side client for pr…
elanlaw1206 Aug 29, 2025
53d9708
feat(email-verification): add verify route, sendVerification util, su…
elanlaw1206 Aug 29, 2025
ee85341
Email verification: switch to token-only flow; add verified_at; updat…
elanlaw1206 Sep 17, 2025
5d7e163
Sanitize: remove env.test from VCS and ignore env files
elanlaw1206 Sep 17, 2025
e2f63ea
docs(swagger): servers -> http://localhost:3000/api
elanlaw1206 Sep 19, 2025
1d4c916
chore(lockfile): update after rebase (include nodemailer)
elanlaw1206 Sep 19, 2025
31e5457
feat(email-verification): send real email + Swagger servers (:3000/api)
elanlaw1206 Sep 19, 2025
3c4e0d6
feat(email-verification): real email verification + Swagger :3000/api…
elanlaw1206 Sep 19, 2025
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
51 changes: 51 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: SecurityScanWorkflow

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
run-security-scan:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Get list of changed files (new and modified)
id: changed-files
run: |
git fetch origin master --depth=1
MODIFIED_FILES=$(git diff --name-only origin/master ${{ github.sha }} | tr '\n' ' ')
echo "MODIFIED_FILES=${MODIFIED_FILES}" >> $GITHUB_ENV

- name: Set up Python environment
uses: actions/setup-python@v3
with:
python-version: "3.11"

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt

- name: Run Vulnerability Scanner on all changed files
run: |
if [[ -z "$MODIFIED_FILES" ]]; then
echo "No modified files to scan."
exit 0
fi
for file in $MODIFIED_FILES; do
echo "Scanning $file..."
python3 Vulnerability_Tool/Vulnerability_Scanner_V1.4.py "$file" >> security_scan_report.txt
done

- name: Save scan results as an artifact
uses: actions/upload-artifact@v4
with:
name: security-scan-report
path: security_scan_report.txt
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

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

Expand Down Expand Up @@ -129,4 +129,7 @@ dist
.pnp.*

.vscode
.idea
.ideaenv.test
.env
.env.*
*.env
33 changes: 33 additions & 0 deletions API_PatchNotes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Nutrihelp-api: V1.4





Nutrihelp-api: V1.3





Nutrihelp-api: V1.2





Nutrihelp-api: V1.1
Description:


ChangeLog
- Added Version Control
-




Nutrihelp-api: V1.0


COME BACK TOO
24 changes: 24 additions & 0 deletions Monitor_&_Logging/loginLogger.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { createClient } = require('@supabase/supabase-js');

const supabase = createClient(
process.env.SUPABASE_URL,
process.env.SUPABASE_ANON_KEY
);

async function logLoginEvent({ userId, eventType, ip, userAgent, details = {} }) {
const { error } = await supabase
.from('audit_logs')
.insert({
user_id: userId,
event_type: eventType,
ip_address: ip,
user_agent: userAgent,
details
});

if (error) {
console.error('Error logging login event:', error);
}
}

module.exports = logLoginEvent;
235 changes: 235 additions & 0 deletions PatchNotes_VersionControl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
Nutrihelp API Backend Version Control
### All changelog additions were completed via the Backend API team as a whole ###

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-V2024.2.3-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
ChangeLog:
- Added 5 new vulnerability pattens to Vulnerability scanner - Changed version to V1.1
- Added Vulnerability Report
- Upgraded POST Meal Planning API
- Upgraded GET meal planning API
- Updated / Refactored login API's to use email instead of username
- Began development of recipe image classification api

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-V2024.2.2-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
ChangeLog:
- Implmented V1.0 Vulnerability scanner
- Added user ID and set up relationship in feedback API endpoint
- Added cooking method ID to the relation table/recipe API endpoint
- Added User Change Password API
- Added Image to User profile API

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-V2024.2.1-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
ChangeLog:
- Added Version Control
- Added additional input Fields to the New user Sign Up Form
- Added images to Recipe API

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-V2024.2.0-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
Current pages and applicaitons present before trimester commenced

Current Controllers:
- Appointment Controller
- Contact Us Controller
- Food Data Controller
- Image Classification Controller
- Login Controller
- Meal Plan Controller
- Recipe Controller
- Sign Up Controller
- User Feedback Controller
- User Preferences Controller
- User Profile Controller

Middleware:
- Authenticate Token

Current models:
- Add Appointment
- Add Contact Us Msg
- Add MFA Token
- Add User
- Add User Feedback
- Create Recipe
- Create Recipe Test Sample
- Delete User Recipes
- Fetch All Allergies
- Fetch Cooking Methods
- Fetch All Cuisines
- Fetch All Dietary Requirements
- Fetch All Health Conditions
- Fetch All Ingredients
- Fetch All Spice Levels
- Fetch User Preferences
- Get Appointments
- Get User
- Get User Credentials
- Get User Profile
- Get User Recipes
- Image classification python script
- Meal Plan
- Update User Preference
- Update User Profile

Node Models
- .bin
- @sendgrid
- @supabase
- @types
- accepts
- append-field
- argparse
- array-flatten
- asynckit
- axios
- balanced-match
- bcryptjs
- body-parser
- brace-expansion
- buffer-equal-constant-time
- buffer-from
- busboy
- bytes
- call-bind
- combined-stream
- concat-map
- concat-stream
- content-disposition
- content-type
- cookie
- cookie-signature
- core-util-is
- cors
- debug
- deepmerge
- define-data-property
- delayed-stream
- denque
- depd
- destroy
- dotenv
- ecdsa-sig-formatter
- ee-first
- encodeurl
- es-define-property
- es-errors
- escape-html
- etag
- express
- finalhandler
- follow-redirects
- form-data
- forwarded
- fresh
- fs.realpath
- function-bind
- generate-function
- get-intrinsic
- glob
- gopd
- has-property-descriptors
- has-proto
- has-symbols
- hasown
- http-errors
- iconv-lite
- inflight
- inherits
- ipaddr.js
- is-property
- isarray
- jsonwebtoken
- jwa
- jws
- lodash.includes
- lodash.isboolean
- lodash.isinteger
- lodash.isnumber
- lodash.isplainobject
- lodash.isstring
- lodash.once
- long
- lru-cache
- media-typer
- merge-descriptors
- methods
- mime
- mime-db
- mime-types
- minimatch
- minimist
- mkdirp
- ms
- multer
- mysql2
- named-placeholders
- negotiator
- object-assign
- object-inspect
- on-finished
- once
- parseurl
- path-is-absolute
- path-to-regexp
- process-nextick-args
- proxy-addr
- proxy-from-env
- qs
- range-parser
- raw-body
- readable-stream
- safe-buffer
- safer-buffer
- semver
- send
- seq-queue
- serve-static
- set-function-length
- setprototypeof
- side-channel
- sprintf-js
- sqlstring
- statuses
- streamsearch
- string_decoder
- swagger-ui-dist
- swagger-ui-express
- toidentifier
- tr46
- type-is
- typedarray
- undici-types
- unpipe
- util-deprecate
- utils-merge
- vary
- webidl-conversions
- whatwg-url
- wrappy
- ws
- xtend
- yallist
- yamljs

Routes:
- Appointment
- Contact Us
- Food Data
- Image Classification
- Index
- Login
- Meal Plan
- Recipe
- Sign Up
- User Feedback
- User Preference
- User Profile

Other:
- .env
- .gitignore.git
- dbConnection.js
- index.yaml
- package.json
- package-lock.json
- README.md
- server.js
Loading