Skip to content
Jake-YeoPublic

About

PullUp — team project for UBC CPSC 455; mirrored from the original repository with full commit history.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

728 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pullup | Team Pullup | Team 10

Branch for grading: FinalRelease (Milestone 5 — Final)
Scope: doc/m5-scope.md

Index

Legacy (Previous Milestones) Index

Team Members

  • Daniel
  • Heaton
  • Jake
  • David
  • Molly

Goals

Original application goals (M0 / M1): Build PullUp as a low-friction private hangout app for Gen-Z and millennials — quickly create and share plans with friends and social circles (from studying at the library to multi-group birthday parties), see invited events on a map, share photos from hangouts, and allow plus-ones — without the heavyweight, public-facing workflow of Facebook Events / Bounce-style platforms. See the M1 proposal.

How the Final application compares:

Outcome Detail
Met Auth0 signup/login and onboarding; dashboard of upcoming hangouts; friend requests; create/publish pullups with location; Google Maps view of invited events; shared photo albums (S3); social circles; attendee plus-one invites; host edit and delete
Deviated / incomplete (labeled) Notifications inbox — dropped (M3). Suggested Friends — dropped (M3). Comments — dropped (M3). Host plus-one approval via notifications — dropped with notifications
Exceeded Plus-one extendedBy attribution; album emoji reactions; Docker-only TA deploy; automated API (Mocha), frontend unit (Vitest), and Playwright E2E beyond early plans; XSS assessment + hardening from M4
Stretch (M0) Shared expenses, car pool, and tentative events were planned as stretch. None completed for Final — not shipped and not graded as missing core

Full cut decisions: M5 scope.

Project Description

PullUp is a social hangout app designed for the fast moving and spontaneous generation of gen-z and millennials. Existing event planning apps like Facebook Events, Bounce, etc. have heavyweight processes for creating events that are public facing and end up getting lost in peoples feeds. Due to this when people want to create plans & events with friends they are forced to individually DM friends or text across different groupchats/apps to share their plans. PullUp changes this by allowing users to quickly share plans as simple as studying at the library from 2pm-6pm to birthday parties involving multiple friend groups.

Key Features

Core product surfaces from a user’s perspective (not login/register). Screenshots live under doc/screenshots/

1. Create and share a pullup

Invite friends and/or circles, set time and optional location (Places autocomplete), toggle plus-ones, and publish. The creator is the logged-in user.

Create pullup

2. Pullup detail — host and attendee

Open a card for details, map link when location exists, RSVP, host Edit (fields, invitees, location), and host Delete.

Pullup detail

3. Friends and social circles

Send/accept friend requests; create, edit, and delete circles; manage membership — then reuse circles when inviting to a pullup.

Friends Page Create Circle Edit Circle Manage Friend Add Friend

4. Map of upcoming hangouts

/map plots the user’s upcoming pullups that have locations, with Today / This Week / This Month filters and place search.

Map view

5. Shared album / Photo Timeline

From Home → Pullup Albums → upload JPEG/PNG (≤5 MB), view, download, delete, and react on photos stored in S3.

Photos are ordered in ascending order of dateTaken. This information is parsed from the EXIF metadata when available, with the upload time used as the fallback value.

Can upload up to 5 photos at a time to prevent one user from uploading to the max 50 per album at once. Also protects our server and S3 from being overwhelmed by large payloads.

Shared album

Non-Trivial Features

Non-trivial element (M0/M1) Final status Notes
Creating / sharing events (pullups) Completed Live create → MongoDB; validation + moderation
Social circles Completed CRUD + invite-by-circle
Photo timeline / shared album Completed (album) Upload/view/download/delete/react via S3; Photos ordered by EXIF date
Map view of events Completed Google Maps + date filters + RSVPs
Plus-one to an event Completed Attendee invite + extendedBy; host approval dropped
Notifications Dropped Scoped out since M3 — no inbox or system alerts. We scoped this out so that we could have more time to polish our key features.
Suggested Friends Dropped Scoped out since M3 — add by username / requests only. We scoped this out so that we could have more time to polish our key features.
Comments on Photo Dropped Scoped out since M3. We scoped this out so that we could have more time to polish our key features.

Docker Instructions

Do not install Node, MongoDB, or other runtimes on the host. Docker Desktop is enough.

  1. Place the Canvas .env files in the paths under .env Files.
  2. From the repository root:
cd PullUp
docker compose up --build
  1. Open the app:

  2. Stop:

cd PullUp
docker compose down

To reset the seeded database:

cd PullUp
docker compose down -v
docker compose up --build

How to use the app (TA quick start)

  1. Open http://localhost:5173/ — you will be redirected to Auth if not logged in.
  2. Sign in with Auth0 (credentials / tenant details are in the Canvas .env zip). For the seeded demo user use [email protected] / alice (profile display name David).
  3. Complete onboarding if prompted (first-time Auth0 users).
  4. Use the sidebar: Home (dashboard), Friends, Pullups, Map, Profile.
  5. Seeded Morning Run already has RSVPs and plus-ones — open it from Home/Pullups, or create a new pullup via Create.

.env Files

Env files are submitted on Canvas (zip). Do not commit secrets to GitHub.

File in Canvas zip Place at
frontend env / front-end .env PullUp/front-end/.env
Root .env (API) PullUp/api/.env
.env-mongo PullUp/mongo/.env-mongo
.env-mongo-express PullUp/mongo/.env-mongo-express

docker compose loads PullUp/api/.env and the mongo env files automatically. The front-end container also receives compose environment overrides (VITE_USE_MOCK_API=false, VITE_API_URL=http://localhost:4000).

Required front-end secrets (in PullUp/front-end/.env)

VITE_API_URL=...
VITE_GOOGLE_MAPS_API_KEY=your_key_here
VITE_AUTH0_DOMAIN=your_tenant.auth0.com
VITE_AUTH0_CLIENT_ID=your_spa_client_id
E2E_AUTH0_EMAIL=...
E2E_AUTH0_PASSWORD=...

Google Maps API key

The map view and location picker require a Google Maps Platform API key:

  1. Create a project in Google Cloud Console.
  2. Enable Maps JavaScript API and Places API (New).
  3. Create an API key and restrict it by HTTP referrer (e.g. http://localhost:5173/*).
  4. Add the key to PullUp/front-end/.env — never commit this file.

Location search uses Google's PlaceAutocompleteElement widget (Places API New). Without the key, pullups can still be created; map/location search degrade gracefully.

Required API secrets (in PullUp/api/.env)

Typical keys (exact values in Canvas zip):

MONGO_URI=...
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=... 
AWS_REGION=...
AUTH0_AUDIENCE=...
AUTH0_ISSUER_BASE_URL=...
AUTH0_CLIENT_ID=...
AUTH0_CLIENT_SECRET=...
SESSION_SECRET=...
APP_BASE_URL=...

Milestone 5 — Final Release

M5 is the Final release. The app is feature-complete for core hangout flows; this milestone is wrap-up (bugs, polish, docs, demo prep) — not new features. Full detail: M5 scope.

M5 highlights

  • Seed updated for Final demo (PullUp/mongo/init.js): display names David / Heaton (Auth0 still alice@… / charlie@…); Bobby friend of David; Morning Run pre-seeded with plus-ones (extendedBy); pullup dates Aug–Sep 2026. See test-plan §0.2.1.
  • Dropped (Carry over from M3): Notifications; Suggested Friends; M0 stretch goals (shared expenses, car pool, tentative events); Comments on photos
  • Bugs: All P0–P1 closed; P2–P3 closed or Won't-Fix with reason; other bugs closed or noted — see Bug List.
  • Tests: Same automated suite as M4 (69 Mocha / 27 Vitest / Playwright); TA runbook in test-plan.md.

How to use (unchanged from beta)

Same flows as Milestone 4 / Milestone 3: Auth0 → create/edit/delete pullups → friends/circles → plus-one → map → shared album → profile.


Milestone 4 Functionality

M4 was the beta release (second-to-last; M5 is Final). Core / main functionality was feature-complete; work focused on stretch goals, bug fixes, polishing, and the XSS security assessment. Full detail: M4 scope (historical).

Scope changes vs M1 / M3

  • Removed from scope (unchanged): Notifications inbox; Suggested Friends / mutual-friend suggestions.
  • Not met at M4: Parse photo metadata for timeline.
  • Stretch (not started): Shared expenses, car pool, tentative events — none shipped by Final.
  • New / polished in M4: Host pullup delete UI; plus-one extendedBy attribution; NotFoundPage; username/display-name validation; album stale-photo fix; ReDoS fix on friend username lookup; expanded automated tests (Mocha / Vitest / Playwright); large bug burn-down (see Bug List).

Pullup delete — Standard (CRUD)

  • State: Implemented (API and UI)
  • How to use: Open a pullup you host → detail drawer → Delete.

Plus-one attribution — Non-trivial

  • State: Implemented
  • Invitations carry extendedBy, so a plus-one records which attendee invited them.
  • How to use: As an RSVP'd attendee on a plus-ones-allowed pullup → Invite Plus-One → Confirm.

Not Found route — Standard

  • State: Implemented
  • Unknown URLs render a NotFoundPage instead of a blank screen.

Core flows (carried from M3 — how to use)

Same as Milestone 3 Functionality: Auth0 login/onboarding, create/edit pullups, RSVP, friends/circles, map, profile, shared album. All remain Working for the beta release.

Automated tests — expanded since M3

  • API: 69 Mocha/Chai cases — cd PullUp/api && npm test
  • Frontend unit: 27 Vitest cases — cd PullUp/front-end && npm test
  • Frontend E2E: Playwright smoke + mutating suites on an ephemeral Docker stack — npm run test:e2e
  • See test plan.

XSS Security Assessment

Per M4 Canvas: document input points, probes, results, and mitigations. Full write-up with backend testing: doc/XSS Vulnerability Assessment.pdf. Tracker: CPS-83.

Summary

  • No XSS script-execution vulnerabilities detected via automated ZAP scan or manual form probes.
  • Related non-XSS findings addressed or deferred (see below and Bug List).

Manual probes (frontend inputs)

Against the running Docker app (http://localhost:5173), each text input below was submitted with <script>alert(123)</script> and <img src=x onerror=alert('hello!')>">.

Input point Test Changes
Signup page (Auth0) Both payloads None
Login page (Auth0) Both payloads None
Create Pullup form (title, description, location) Both payloads None
Create Circle Both payloads None
Maps location input Both payloads None
Profile (display name, username) Both payloads None

Outcome: payloads were not executed as JavaScript (React escaping and/or Auth0-hosted login). No XSS-specific code changes required on these fields.

Related mitigations from assessment / hardening

  • ReDoS on friend username lookup — backend used user input in a regex; resolved by using collation instead of regex.
  • Input validation on profile display name / username — special characters restricted.
  • ZAP / scanner: .DS_Store (#152) and API header leakage (#153) resolved during M4. CSP (#154) and robots.txt (#151) were carried into M5 — resolve or mark Won't-Fix with reason before Final.

Standard Features (M1 → Final)

Mapped from the M1 proposal standard-feature list:

M1 standard feature Final status Where / how
User signup and login Met Auth0 + onboarding + protected routes
Dashboard view of events Met Dashboard + Pullups pages (live RSVP lists)
Friend requests Met Friends page + friend request API
Creating and publishing events Met Create pullup modal → POST /pullups
Geolocation support for events Met Maps page + location on create/edit (Google Maps)
Photo upload Met Dashboard album → /album/:id → S3 presigned upload
Parse photo metadata for timeline Dropped Not implemented for Final — album by upload order
Notifications Dropped Do not grade as missing

Milestone 3 Functionality

M3 is the alpha release: core hangout flows work end-to-end with real API + DB, Auth0 login, Maps, and friends/circles. Mockups that blocked M2 demos are largely replaced by live data.

Auth0 login & onboarding — Non-trivial

Create Pullup Flow — Non-trivial / Core

  • State: Implemented (live DB)
  • How to use: Dashboard or Pullups → Create → title, date, time, optional location (Places autocomplete), description, plus-ones toggle, invite friends/circles → submit.
  • Creator is the logged-in user (Redux currentUser._id), not a hardcoded mock ID.
  • Client validation + bad-words moderation; success/error toasts.

Pullup detail (host / attendee) — Non-trivial / Core

  • State: Implemented
  • How to use: Click a pullup card → drawer with details, map (if location), RSVP, host Edit (title/date/description/location/invitees).
  • Host detection uses the real logged-in user ID (isHost compares creator to currentUser._id).
  • Pullup delete was API-only at M3; the UI delete control shipped in M4.

Plus-ones — Non-trivial / Core

  • State: Implemented (toggle + invite UI); host approve/reject flow removed from scope (no notifications inbox)
  • How to use: Enable Allow plus-ones on create; RSVP’d attendees can Invite Plus-One → Confirm posts invitations. Hosts change invitees via Edit.

Dashboard — Core

  • State: Implemented
  • How to use: Home (/) shows upcoming pullups, friends, and circles from the API for the logged-in user.

Pullups Page — Core

  • State: Implemented
  • How to use: /pullups lists My Pullups (hosted) and Upcoming via GET /users/:id/rsvps.

Friends & social circles — Non-trivial / Core

  • State: Implemented
  • How to use: /friends — list friends, send/manage friend requests, create/edit/delete circles, manage circle membership. Data from API/DB.

Maps Page — Non-trivial

  • State: Implemented
  • How to use: /map — plots the logged-in user's upcoming pullups with locations; Today / This Week / This Month filters; place search; My Location.
  • RSVP fetch uses the real user ID (not the mock Alice ID).

Profile Page — Standard

  • State: Implemented
  • How to use: Sidebar Profile — view/edit profile fields; Auth0 logout.

Shared album / photos — Non-trivial

  • State: Implemented (dashboard albums + /album/:id UI + S3 upload/view/download/delete + reactions)
  • How to use: Home → Pullup Albums card → album page → Upload Photo (JPEG/PNG, ≤5 MB). Hover a photo for download/delete/react; click to expand.

Stretch (proposal) — Not in M3

  • Shared expenses add-on, car pool add-on, tentative events — not built.

Removed from scope

  • Notifications / notifications inbox — not part of M3 (or later) unless reintroduced. Includes invitee-on-create and host plus-one approval notifications.
  • Suggested Friends / mutual-friend suggestions — not part of M3 (or later) unless reintroduced. Friends are added by username / friend requests only.

Milestone 2 Functionality

Historical M2 notes (superseded by M3 where marked Implemented above):

Create Pullup Flow – Core functionality

  • Entire flow works with DB; creates real pullup entries

Dashboard Page – Core functionality

  • Live upcoming lists (see M3)

Friends Page – Core functionality

  • Circles, friends, and friend requests from API/DB
  • Create circle, add friend, manage friends/circles (expanded since M2)

Pullups Page – Core functionality

  • Hosted + upcoming lists from API

Maps Page – Non-Trivial

  • Google Maps, filters, location picker, detail map link

Notifications – Standard

  • Removed from scope (see M3)

Profile / Login / Auth0

  • M2: not implemented · M3: Auth0, Auth page, Profile, onboarding implemented

Test Plan

See test plan — Mocha/Chai API tests, Vitest frontend unit tests, Playwright E2E, and manual TA procedures (M5 Final runbook in §0).

M5 Scope

See M5 scope

M4 Scope

See M4 scope (historical — Beta)

M3 Alpha Scope

See M3 alpha scope (historical)

M2 MVP Scope

See M2 MVP scope (historical)

Bug List

All bugs are tracked as GitHub Issues on this repository (Bug Report template). See severity guide below.

Severity guide:

  • P0 — crash, must fix
  • P1 — intermittent crash/glitch
  • P2 — reproducible, should fix
  • P3 — should fix, shippable if needed
  • P4 — annoying, shippable
  • P5 — future idea

See .github/BUG_TRACKING.md for the template we used

Marked as Wont-Fix

Feel free to confirm with this filter: (example for searching for all open p1 issues)is:open is:issue p1 in:body.

Note that the comment section or the issue description contain the won't fix reason for each of the bugs listed below.

P0 issues:

  • None

P1 issues:

  • None

P2 issues:

P3 issues:

P4 issues:

P5 issues:

Resolved During M5:

About

PullUp — team project for UBC CPSC 455; mirrored from the original repository with full commit history.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages