This repo is deployed to https://davidhorm.github.io/bgg-what-to-play/.
Website to visualize your BGG collection to better figure out which board game to play based on number of players and game length.
- Filter by:
- Player count
- Playtime
- Complexity
- Average or User Ratings
- Hide by default, but can show:
- Average or User Ratings
- Expansions
- Not recommended player counts
- Invalid player counts
- Sort by:
- Name
- Player Count Recommended
- Average Playtime
- Complexity
- Average or User Ratings
pnpm install
to install all the packagespnpm dev
to start the dev server- Navigate to http://localhost:5173/
When developing locally, mock users have been created to help test certain scenarios:
User | Scenario |
---|---|
000 | Mock response for an empty collection |
001 | Mock response for a collection with a single game |
202 | Mock response that always returns the 202 code |
If an expected game isn't showing up, then add debug=1
to the query parameter to see the list of games as it goes through the different filters outputted to the console.
These are the other scripts defined in package.json
.
Script | Description |
---|---|
pnpm build |
Build for production. |
pnpm preview |
Locally preview production build. |
pnpm lint |
Report linting and formatting errors |
pnpm lint:fix |
Fix linting and formatting errors |
pnpm test |
Run unit and end-to-end tests |
pnpm test:unit |
Run unit tests in watch mode |
pnpm test:cov |
Run unit tests with coverage reports |
pnpm test:e2e |
Run end-to-end tests (can add --headed and/or --debug ) |
pnpm codegen |
Generate end-to-end tests with codegen |
pnpm run deploy |
Deploy to Github pages |