Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
9ec2c80
Virtual Pet Prototype
pizzadogsquared Dec 4, 2025
13607fd
Delete project2.zip
pizzadogsquared Dec 4, 2025
5b3aa60
Merge pull request #1 from pizzadogsquared/elijah
pizzadogsquared Dec 4, 2025
4471097
Talk to Virtual Pet
pizzadogsquared Dec 4, 2025
3c4dcee
Merge branch 'elijah' of https://github.com/pizzadogsquared/Server-Re…
pizzadogsquared Dec 4, 2025
f9ecdc7
Merge pull request #2 from pizzadogsquared/elijah
pizzadogsquared Dec 4, 2025
443ae83
updating pet chatbot visuals
benjamin-levine Feb 3, 2026
a1bcb9f
Display Coins/Shop on Survey Page
pizzadogsquared Feb 3, 2026
fe5060c
Display Coins/Shop on Survey Page
pizzadogsquared Feb 3, 2026
1da00a6
Updated Friendlier Survey Display
pizzadogsquared Feb 3, 2026
0e74ae5
Merge branch elijah into main
pizzadogsquared Feb 3, 2026
6e0bc2c
Coins for completing questions
pizzadogsquared Feb 3, 2026
7fa3c0c
Merge branch 'main' of https://github.com/pizzadogsquared/Server-Repo…
pizzadogsquared Feb 3, 2026
c0a8698
Coin animation
pizzadogsquared Feb 3, 2026
24dcf54
Coin sound
pizzadogsquared Feb 3, 2026
2592399
Merge pull request #5 from pizzadogsquared/elijah
pizzadogsquared Feb 3, 2026
475d9d3
Merge pull request #7 from pizzadogsquared/benjamin
pizzadogsquared Feb 3, 2026
ac0d70e
Reconstructed wellness forms and selection pages. Updated styling. Ad…
lt-537 Feb 7, 2026
d7b5bf9
Adding resources and fixing Pet ChatBot logic
benjamin-levine Feb 10, 2026
16a938f
Extra ChatBot improvements.
benjamin-levine Feb 10, 2026
6e8f5da
Merge pull request #8 from pizzadogsquared/benjamin
pizzadogsquared Feb 10, 2026
73eecd5
updated files
lt-537 Feb 10, 2026
1dd7156
Merge remote-tracking branch 'origin/main' into latisha
lt-537 Feb 11, 2026
2c1ba8a
Streak tracker implementation & timing of wellness insights after sur…
Feb 13, 2026
a853232
Merge pull request #9 from pizzadogsquared/andrew
pizzadogsquared Feb 13, 2026
c9b1149
Merge branch 'main' into latisha
pizzadogsquared Feb 13, 2026
f4b3990
Merge pull request #10 from pizzadogsquared/latisha
pizzadogsquared Feb 13, 2026
aee59de
Update index.js
pizzadogsquared Feb 13, 2026
291e726
Merge branch 'main' into elijah
pizzadogsquared Feb 13, 2026
32926cd
Merge pull request #11 from pizzadogsquared/elijah
pizzadogsquared Feb 13, 2026
5499fa4
Updating
benjamin-levine Feb 26, 2026
812c707
Update routing
pizzadogsquared Mar 3, 2026
8058e5d
Update routing
pizzadogsquared Mar 3, 2026
f648e68
Merge pull request #12 from pizzadogsquared/elijah
pizzadogsquared Mar 3, 2026
5d68155
Adding Chatbot and fixing links
benjamin-levine Mar 3, 2026
4666ad8
Merge branch 'main' into benjamin
pizzadogsquared Mar 3, 2026
5445d81
Merge pull request #13 from pizzadogsquared/benjamin
pizzadogsquared Mar 3, 2026
149acd6
Stylistic changes, color changes
benjamin-levine Mar 16, 2026
ce10c4e
Merge pull request #14 from pizzadogsquared/benjamin
pizzadogsquared Mar 17, 2026
c449bae
Update index.js
pizzadogsquared Mar 17, 2026
9c99699
Merge pull request #15 from pizzadogsquared/elijah
pizzadogsquared Mar 17, 2026
6de4f0b
Pet Customization features
pizzadogsquared Mar 17, 2026
c681827
Merge pull request #16 from pizzadogsquared/elijah
pizzadogsquared Mar 17, 2026
0ed0262
Updated index.js
pizzadogsquared Mar 17, 2026
175acbe
Merge pull request #17 from pizzadogsquared/elijah
pizzadogsquared Mar 17, 2026
676c854
navbar UI improvements. added dropdown, fixed alignment, improved sty…
Mar 17, 2026
ffd466d
Merge pull request #18 from pizzadogsquared/andrew
pizzadogsquared Mar 17, 2026
ef367bb
modified navbar accommodating mobile devices and for consistency acro…
lt-537 Apr 7, 2026
e21d054
modified surveys to accommodate mobile devices
lt-537 Apr 8, 2026
7b6b594
Test features
pizzadogsquared Apr 9, 2026
9c3c7cd
updated logo image and sizing
lt-537 Apr 10, 2026
28edc7e
Changing surveys to check-ins.
benjamin-levine Apr 13, 2026
f8a1110
Changing ALL survey to checkin
benjamin-levine Apr 14, 2026
aa0bc1e
Merge pull request #22 from pizzadogsquared/latisha
benjamin-levine Apr 14, 2026
c533440
Navigation bar in choices
benjamin-levine Apr 14, 2026
76c4e1c
Merge branch 'main' of https://github.com/pizzadogsquared/Server-Repo…
pizzadogsquared Apr 14, 2026
c20b5ea
Email verification
pizzadogsquared Apr 14, 2026
afb58f1
Updating branch
benjamin-levine Apr 14, 2026
3c83e24
Merge pull request #39 from pizzadogsquared/benjamin
lt-537 Apr 14, 2026
0b2b8dc
Merge branch 'main' of https://github.com/pizzadogsquared/Server-Repo…
pizzadogsquared Apr 15, 2026
5bb9dac
Email verification implemented
pizzadogsquared Apr 15, 2026
47002f5
Merge pull request #40 from pizzadogsquared/elijah: Email verification
pizzadogsquared Apr 15, 2026
3ad7385
added navbar to survey-choice.ejs
lt-537 Apr 15, 2026
c0c7c5f
Merge remote-tracking branch 'origin/main' into latisha
lt-537 Apr 15, 2026
c592061
Pet ChatBot updates
benjamin-levine Apr 15, 2026
a01bf76
Merge pull request #41 from pizzadogsquared/benjamin
lt-537 Apr 16, 2026
f211dfa
initial message to AI
benjamin-levine Apr 19, 2026
1f7c5e6
fixing bad code
benjamin-levine Apr 19, 2026
a08b811
Merge pull request #42 from pizzadogsquared/benjamin
lt-537 Apr 20, 2026
632c798
Merge remote-tracking branch 'origin/main' into latisha
lt-537 Apr 20, 2026
5ad897b
Coins leaderboard, closes #32
pizzadogsquared Apr 21, 2026
c216523
Merge pull request #43 from pizzadogsquared/elijah
pizzadogsquared Apr 21, 2026
aea3ff8
Removed chatbot route, closes #27
pizzadogsquared Apr 21, 2026
093ad16
Merge pull request #44 from pizzadogsquared/elijah
pizzadogsquared Apr 21, 2026
b7f1879
Make penguin default, closes #23
pizzadogsquared Apr 21, 2026
19c1ec2
Merge pull request #45 from pizzadogsquared/elijah
pizzadogsquared Apr 21, 2026
64e0a7d
Check-in Reminders, closes #25
pizzadogsquared Apr 21, 2026
d31f43a
Merge pull request #46 from pizzadogsquared/elijah
pizzadogsquared Apr 21, 2026
0cc25c2
Remove space in Me Balanced
pizzadogsquared Apr 21, 2026
a9657fe
Merge pull request #47 from pizzadogsquared/elijah
pizzadogsquared Apr 21, 2026
53b50ff
Initial changes of game sprites
benjamin-levine Apr 21, 2026
40c08cb
Merge pull request #48 from pizzadogsquared/new-benjamin
pizzadogsquared Apr 21, 2026
61267c8
Merge remote-tracking branch 'origin/main' into latisha
lt-537 Apr 21, 2026
d7408a2
Default size of pet is increased, adjusted as viewport decreases | Re…
lt-537 Apr 26, 2026
8b44d8c
Penguin maze game
benjamin-levine Apr 26, 2026
f290ae2
Merge pull request #53 from pizzadogsquared/new-benjamin
pizzadogsquared Apr 27, 2026
6e025e6
Email reminders
pizzadogsquared Apr 27, 2026
8a98308
More pet customization
pizzadogsquared Apr 27, 2026
f52ce7f
Merge pull request #54 from pizzadogsquared/elijah
benjamin-levine Apr 27, 2026
0fe5dd3
Increased pet size and remodeled homepage UI
lt-537 Apr 27, 2026
5b11b31
Fixed structure of homepage | fixed width of checkin response boxes
lt-537 Apr 27, 2026
0b0d366
Merge pull request #55 from pizzadogsquared/latisha
pizzadogsquared Apr 28, 2026
26c67de
Requested color changes
pizzadogsquared Apr 28, 2026
3b573d0
Pet accessory changes
pizzadogsquared Apr 28, 2026
970e319
Option for chatbot memory
pizzadogsquared Apr 28, 2026
c323bd4
Change to 72-hour reminders
pizzadogsquared Apr 28, 2026
10f6432
Merge pull request #56 from pizzadogsquared/elijah
pizzadogsquared Apr 28, 2026
a3385d9
removed green aura from welcome logo | created pet thought bubble
lt-537 Apr 30, 2026
99fc847
Progress to Feedback update, removed shop button
benjamin-levine Apr 30, 2026
31ec216
updated checkin response scoring for determining pet state
lt-537 Apr 30, 2026
225c632
removed unwanted file
lt-537 Apr 30, 2026
872acdd
Merge pull request #57 from pizzadogsquared/new-benjamin
lt-537 Apr 30, 2026
878cf41
Merge remote-tracking branch 'origin/main' into latisha
lt-537 Apr 30, 2026
c77fe28
added small changes
lt-537 Apr 30, 2026
aa25c88
Merge pull request #58 from pizzadogsquared/latisha
pizzadogsquared May 1, 2026
d1e666a
changed logo color to darker orange | removed Welcome message
lt-537 May 2, 2026
b9ea392
Merge remote-tracking branch 'origin/main' into latisha
lt-537 May 2, 2026
60725bb
Updating feedback page
benjamin-levine May 4, 2026
d708bd4
Merge pull request #59 from pizzadogsquared/latisha
benjamin-levine May 4, 2026
64ca626
Merge pull request #60 from pizzadogsquared/new-benjamin
lt-537 May 4, 2026
3b88434
Merge remote-tracking branch 'origin/main' into latisha
lt-537 May 4, 2026
2fb219e
changed checkin reminder window color | changed homepage button colors
lt-537 May 4, 2026
e90f218
changed daily reminder text color darker | removed small typo
lt-537 May 5, 2026
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.env
node_modules/
project.zip
.gitignore
174 changes: 174 additions & 0 deletions checkinData.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
export default {
general: [
{
id: "q1",
question: "What was your water intake for today?",
responses: [
{value: 1, icon: "bi-droplet", label: "0-2 glasses"},
{value: 2, icon: "bi-droplet", label: "3-4 glasses"},
{value: 3, icon: "bi-droplet-half", label: "5-6 glasses"},
{value: 4, icon: "bi-droplet-fill", label: "7-8 glasses"},
{value: 5, icon: "bi-water", label: "9+ glasses"}
]
},
{
id: "q2",
question: "How was your meal consistency today?",
responses: [
{value: 1, icon: "", label: "Skipped meals"},
{value: 2, icon: "", label: "Only one meal"},
{value: 3, icon: "", label: "Two meals"},
{value: 4, icon: "", label: "Three meals"},
{value: 5, icon: "", label: "Balanced meals & snacks"}
]
},
{
id: "q3",
question: "How is your energy today?",
responses: [
{ value: 1, icon:"bi-battery", label: "Exhausted" },
{ value: 2, icon: "bi-battery-low", label: "Sluggish" },
{ value: 3, icon: "bi-battery-half", label: "Steady" },
{ value: 4, icon: "bi-battery-full", label: "Energetic" },
{ value: 5, icon: "", label: "Peak power"}
]
},
{
id: "q4",
question: "How do you feel about the future?",
responses: [
{ value: 1, icon: "", label: "Very Pessimistic"},
{ value: 2, icon: "", label: "Uncertain"},
{ value: 3, icon: "", label: "Neutral"},
{ value: 4, icon: "", label: "Hopeful"},
{ value: 5, icon: "", label: "Very Optimistic"}
]
},
{
id: "q5",
question: "Do you feel satisfied with your daily life?",
responses: [
{ value: 1, icon: "", label: "Not at all"},
{ value: 2, icon: "", label: "Rarely"},
{ value: 3, icon: "", label: "Sometimes"},
{ value: 4, icon: "", label: "Mostly"},
{ value: 5, icon: "", label: "Completely"}
]
},
],
mental: [
{
id: "q1",
question: "How was your ability to focus throughout the day?",
responses: [
{ value: 1, icon:"", label: "Constant Distraction" },
{ value: 2, icon: "", label: "Low Focus"},
{ value: 3, icon: "", label: "Occasional Drift"},
{ value: 4, icon: "", label: "Mostly Focused" },
{ value: 5, icon: "", label: "Total Flow State"}
]
},
{
id: "q2",
question: "Did you feel a sense of support",
responses: [
{ value: 1, icon:"", label: "Isolated" },
{ value: 2, icon: "", label: "Misunderstood"},
{ value: 3, icon: "", label: "Somewhat Supported"},
{ value: 4, icon: "", label: "Well Connected" },
{ value: 5, icon: "", label: "Strongly Supported"}
]
},
{
id: "q3",
question: "What is your perspective of the challenges you're currently facing?",
responses: [
{ value: 1, icon:"", label: "Feels Alone" },
{ value: 2, icon: "", label: "Struggling"},
{ value: 3, icon: "", label: "Hanging in There"},
{ value: 4, icon: "", label: "Managing Well" },
{ value: 5, icon: "", label: "Empowered"}
]
},
{
id: "q4",
question: "Where do you feel the level of your self-confidence is at?",
responses: [
{ value: 1, icon:"", label: "Very Low" },
{ value: 2, icon: "", label: "Doubtful"},
{ value: 3, icon: "", label: "Average"},
{ value: 4, icon: "", label: "Healthy Confidence"},
{ value: 5, icon: "", label: "High Confidence"}
]
},
{
id: "q5",
question: "How do you feel about your current emotional balance?",
responses: [
{ value: 1, icon:"", label: "Overwhelmed" },
{ value: 2, icon: "", label: "Unstable"},
{ value: 3, icon: "", label: "Neutral"},
{ value: 4, icon: "", label: "Balanced" },
{ value: 5, icon: "", label: "Very Peaceful"}
]
}
],
physical: [
{
id: "q1",
question: "Till when do you use electronic devices after midnight?",
responses: [
{ value: 1, icon:"", label: "3 AM +" },
{ value: 2, icon: "", label: "2 AM"},
{ value: 3, icon: "", label: "1 AM"},
{ value: 4, icon: "", label: "Just after 12 AM" },
{ value: 5, icon: "", label: "No screens"}
]
},
{
id: "q2",
question: "How long did you exercise for today?",
responses: [
{value: 1, icon:"bi-person-standing", label: "None", range: ""},
{value: 2, icon:"bi-person-walking", label: "Light", range: "30 minutes"},
{value: 3, icon: "", label: "Moderate", range: "1 hour"},
{value: 4, icon: "bi-person-arms-up", label: "Moderate-Intensity", range: "1-2 hours"},
{value: 5, icon: "bi-lightning-charge-fill", label: "Heavy", range:"3+ hours"},
]
},
{
id: "q3",
question: "Around how many minutes of sun exposure did you get today?",
responses: [
{value: 1, icon: "", label: "Indoors All Day"},
{value: 2, icon: "", label: "< 5 minutes"},
{value: 3, icon: "", label: "5 - 10 minutes"},
{value: 4, icon: "", label: "10 - 20 minutes"},
{value: 5, icon: "", label: "30+ minutes"}
]
},
{
id: "q4",
question: "Around how many hours of sleep did you get last night?",
responses: [
{value: 1, icon: "", label: "< 4 hours"},
{value: 2, icon: "", label: "5 hours"},
{value: 3, icon: "", label: "6 hours"},
{value: 4, icon: "", label: "7 hours"},
{value: 5, icon: "", label: "8+ hours"}
]
},
{
id: "q5",
question: "What was your level of caffine consumption today",
responses: [
{value: 1, icon:"", label: "3+ drinks"},
{value: 2, icon: "", label: "2 drinks"},
{value: 3, icon: "", label: "1 drink"},
{value: 4, icon: "", label: "A few sips"},
{value: 5, icon: "", label: "None"}
]
}
]
};

19 changes: 11 additions & 8 deletions db.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import dotenv from 'dotenv';
dotenv.config();

const db = mysql.createPool({
host: process.env.DB_HOST || 'localhost',
user: process.env.DB_USER || 'root',
password: process.env.DB_PASSWORD || '',
database: process.env.DB_NAME || 'my_database',
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0,
});
host: process.env.DB_HOST || 'localhost',
port: Number(process.env.DB_PORT || 3306),
user: process.env.DB_USER || 'root',
password: process.env.DB_PASSWORD || '',
database: process.env.DB_NAME || 'my_database',
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0,
});



(async () => {
try {
Expand Down
Loading