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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ yet, depending on when the review is made.
| GraphQL API: search, filter, sort, pagination | Done | Queries `wines`, `wine` and `filterOptions` |
| Database schema and X-Wines import | Done | Tables and indexes come from the migrations in `backend/migrations/` |
| Frontend deployed on the VM | Done | Deep links such as `/project2/sok` work on reload |
| Backend running on the VM | Done | Started with `nohup`, see [VM guide](docs/vm.md) |
| Backend running on the VM | Done | Runs as a systemd service, see [VM guide](docs/vm.md) |
| Apollo Client in the frontend | Done | |
| Search page with results | Done | Search with debounce, number of hits and "Last inn flere" at `/sok` |
| Filtering and sorting in the user interface | Done | Filter panel, active filters and sorting on `/sok` |
Expand Down Expand Up @@ -97,7 +97,7 @@ cd frontend && npm run dev # http://localhost:5173/project2/

The landing page needs the backend for wines and categories. Without it, the page shows an error message with a "Prøv igjen" button.

To deploy on the VM, see the [VM guide](docs/vm.md).
To deploy on the VM, run `./scripts/deploy.sh` there. See the [VM guide](docs/vm.md).

### Demo user

Expand Down Expand Up @@ -174,7 +174,7 @@ Each row explains what we chose, why, and what else we considered. Added as the
| Filter panel on small screens | Native `<dialog>` with `showModal()` | The browser handles focus trapping, Escape and returning focus, with no extra JavaScript | A dialog library |
| Filter counts | One count query per group that leaves out the group's own filter | The user can see what each choice gives before choosing, and values can be combined | Fixed counts for the whole catalogue |
| Testing | Vitest, React Testing Library, Playwright, axe | Vitest shares configuration with Vite. Playwright tests real browsers, also on mobile | Jest, Cypress |
| Deployment | Apache serves static files, the backend runs with `nohup` | Matches the course VM | systemd service (possible improvement) |
| Deployment | Apache serves static files, the backend runs as a systemd service, and one script (`scripts/deploy.sh`) updates both | Matches the course VM. The backend starts again after a crash or a restart of the VM, and a deploy is the same steps every time | Starting the backend by hand with `nohup`, which we did first |

See [API](docs/api.md) for the schema and example queries.

Expand Down Expand Up @@ -472,7 +472,7 @@ Remove known issues as they are fixed.

- [Setup](docs/setup.md): Git, dependencies, `.env` and local start
- [Database](docs/database.md): PostgreSQL on macOS, Windows and Ubuntu
- [VM](docs/vm.md): deployment, Apache and running the backend with `nohup`
- [VM](docs/vm.md): the deploy script, first-time setup, Apache, backups and loading the dataset
- [API](docs/api.md): GraphQL queries, user accounts, reviews, wine lists, the demo user, database tests and the X-Wines citation
- [Manual testing](docs/manual-testing.md): how to test login, reviews, wine lists and the demo user by hand
- [Screen reader testing](docs/screen-reader.md): what we found, what we fixed and the VoiceOver script
Expand Down
Loading