Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
64 changes: 50 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,50 @@ country and whether an album has reviews.

IT2810 (NTNU) Project 2. Group T19: `erikhfj`, `robertky`, `evenkkl`, `rachelks`.

| | |
| ----------------- | -------------------------------------------------------------------------------- |
| Current milestone | **M3 – Beta: search, paging, sorting, filtering, accessibility**, due 30 October |
| Live prototype | http://it2810-19.idi.ntnu.no/project2 |
| Workflow | [`docs/WORKFLOW.md`](docs/WORKFLOW.md) |
| AI usage log | [`docs/AI-USAGE.md`](docs/AI-USAGE.md) |
| Running on the VM | [`docs/VM-setup.md`](docs/VM-setup.md) |
| | |
| ------------------- | -------------------------------------------------------- |
| Current milestone | **M4 – final prototype and test suite**, due 13 November |
| Live prototype | http://it2810-19.idi.ntnu.no/project2 |
| Architecture / ADRs | [`docs/architecture.md`](docs/architecture.md) |
| Data model | [`docs/data-model.md`](docs/data-model.md) |
| UI specification | [`docs/ui-specification.md`](docs/ui-specification.md) |
| Scalability | [`docs/scalability.md`](docs/scalability.md) |
| Workflow | [`docs/WORKFLOW.md`](docs/WORKFLOW.md) |
| AI usage log | [`docs/AI-USAGE.md`](docs/AI-USAGE.md) |
| Running on the VM | [`docs/VM-setup.md`](docs/VM-setup.md) |

## Screenshots

The screenshots show the catalog on desktop and mobile, plus an album detail
page. The full set is in [`docs/images/`](docs/images/).

<p>
<img src="docs/images/discover_desktop_light.png" alt="Crate album catalog on desktop" width="49%" />
<img src="docs/images/mobile_discover.png" alt="Crate album catalog on a mobile screen" width="24%" />
<img src="docs/images/album_detail_light.png" alt="Crate album detail page" width="49%" />
</p>

## Getting started

Requires Node.js 24+, pnpm 10.33.0 and PostgreSQL. Run commands from the repository root unless stated otherwise.
### Run locally in about 5 minutes

With Node.js 24+, pnpm 10.33.0 and a running PostgreSQL server already
installed, the steps below start the app from a clean clone. If pnpm is not
installed, install the version used by this repository with npm:

```bash
npm install --global pnpm@10.33.0
```

The first dependency download may take a little longer.

```bash
pnpm install
```

Create a local PostgreSQL database and user. Connect as a PostgreSQL administrator (for example, `psql -U postgres`) and run:
Create a local PostgreSQL database and user. Connect as a PostgreSQL
administrator (for example, `psql -U postgres -d postgres`; some Homebrew
installations use `psql -d postgres` with your macOS username) and run:

```sql
CREATE ROLE t19 WITH LOGIN PASSWORD 'choose-a-local-password';
Expand Down Expand Up @@ -331,7 +358,10 @@ The two `AlbumDetailPage` rows represent the separate chunks for the album detai

**Personal crate:** Users can add or remove albums from their crate on both search results and album detail pages, and a crate page lists everything they have saved, newest first, with paging. The API returns only the requesting user's items. User identity is simulated using a locally stored ID rather than a login system.

**Planned for M4:** Browsing albums without entering a search term.
**Browsing:** Discover displays the catalog even when the search field is
empty. Users can filter and sort those results without first entering a search
term. Search terms, filters and sorting remain in the URL when navigating
between Discover and an album page.

### Backend search behavior

Expand All @@ -358,15 +388,21 @@ PostgreSQL and the GraphQL API run directly on the group VM. Apache serves the f

CI uses a self-hosted runner on the VM. Pushes to `main` run the project checks and deploy the frontend and backend. See [VM setup](docs/VM-setup.md) for deployment and verification steps.

## Working in this repository
## Contributing

`main` is protected. Create a branch and open a pull request:

```bash
git checkout -b my-feature
git push -u origin my-feature
git checkout -b docs/26-readme-polish
git add README.md
git commit -m "docs: #26 polish README for peer review"
git push -u origin docs/26-readme-polish
```

Before merging, a group member must approve the PR and all review conversations must be resolved. New commits dismiss earlier approvals, so request another review after pushing changes.

See [`docs/WORKFLOW.md`](docs/WORKFLOW.md) for branch naming, commit conventions and review expectations.
Use an issue-based branch (`feat/<issue>-short-name`, `fix/…` or `docs/…`), a
Conventional Commit that references the issue, and a pull request. A different
group member reviews it; resolve review conversations and pass the checks before
merging. The [workflow guide](docs/WORKFLOW.md) has the full branch, commit,
PR and review conventions.
1 change: 1 addition & 0 deletions docs/AI-USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ the part that matters most.
| 2026-11-10 | rachelks | Codex (ChatGPT) | Assisted with reviewing PR #86 and implementing and testing album cover images for issue #23, including responsive images and fallback behavior. |
| 2026-11-11 | rachelks | Codex (ChatGPT) | Assisted with investigating Lighthouse results for issue #23 after Roberts comment on the PR. This included improving album detail loading performance, reviewing changes and documenting the test results. |
| 2026-11-12 | robertky | Codex (ChatGPT) | Helped preserve the original 500-album MusicBrainz catalog while adding country metadata to the 70 release groups missing from the regenerated snapshot. I reviewed the selected IDs and imported metadata. |
| 2026-11-13 | robertky | Codex (ChatGPT) | Assisted me with #26: polished the README, added screenshots and project-document links, and verified the local setup from a clean clone. I reviewed the changes and updated the implementation notes to reflect merged browsing and country-filter features. |

## Notes

Expand Down