Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To run:
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`

7. run main
You may want to run `python3 populate.py` to populate sample data.

If you ever need to wipe the database, just delete `../db/pg_data` (and remember to set it up again after).
Expand Down
1 change: 1 addition & 0 deletions front-end/views/home.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {createBloom} from "../components/bloom.mjs";

// Home view - logged in or not
function homeView() {

destroy();

if (state.isLoggedIn) {
Expand Down
7 changes: 4 additions & 3 deletions front-end/views/profile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ function profileView(username) {
"login-template",
createLogin
);
document
.querySelector("[data-action='login']")
?.addEventListener("click", handleLogin);

document
.querySelector("[data-form='login']")
?.addEventListener("submit", handleLogin);

const profileData = state.profiles.find((p) => p.username === username);
if (profileData) {
Expand Down