From d1d411adca43f95090b994ff2b4774dfa9d442b1 Mon Sep 17 00:00:00 2001 From: zohrehKazemianpour <129424353+zohrehKazemianpour@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:08:21 +0000 Subject: [PATCH 1/2] Fix: Replace psycopg2 with psycopg2-binary for macOS compatibility and update README --- backend/README.md | 3 ++- backend/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/README.md b/backend/README.md index 8e31e11..08f0aef 100644 --- a/backend/README.md +++ b/backend/README.md @@ -13,7 +13,8 @@ To run: 3. Activate the virtual environment: `. .venv/bin/activate` 4. Install dependencies: `pip install -r requirements.txt` 5. Run the database: `../db/run.sh` (you must have Docker installed and running). -6. Create the database schema: `../db/create-schema.sh` +6.run the server python3 main.py +7. Create the database schema: `../db/create-schema.sh` You may want to run `python3 populate.py` to populate sample data. diff --git a/backend/requirements.txt b/backend/requirements.txt index e03836c..5e11b05 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -11,7 +11,7 @@ idna==3.10 itsdangerous==2.2.0 Jinja2==3.1.5 MarkupSafe==3.0.2 -psycopg2==2.9.10 +psycopg2-binary==2.9.10 pycparser==2.22 PyJWT==2.10.1 python-dotenv==1.0.1 From 5d633f50fdf1b318a16655fad4cb79b31a301224 Mon Sep 17 00:00:00 2001 From: zohrehKazemianpour <129424353+zohrehKazemianpour@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:28:47 +0000 Subject: [PATCH 2/2] Fix: Correct login event listener in profile view --- front-end/views/profile.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/views/profile.mjs b/front-end/views/profile.mjs index dd2b92a..31139a9 100644 --- a/front-end/views/profile.mjs +++ b/front-end/views/profile.mjs @@ -39,8 +39,8 @@ function profileView(username) { createLogin ); document - .querySelector("[data-action='login']") - ?.addEventListener("click", handleLogin); + .querySelector("[data-form='login']") + ?.addEventListener("submit", handleLogin); const profileData = state.profiles.find((p) => p.username === username); if (profileData) {