https://github.com/trinovantes/wowpay2win
This tool scans for BoEs in every auction house across each World of Warcraft region
https://github.com/trinovantes/wowpay2win
docker typescript vuejs world-of-warcraft
Last synced: 5 months ago
JSON representation
This tool scans for BoEs in every auction house across each World of Warcraft region
- Host: GitHub
- URL: https://github.com/trinovantes/wowpay2win
- Owner: Trinovantes
- License: agpl-3.0
- Created: 2021-01-02T18:54:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T08:28:55.000Z (over 1 year ago)
- Last Synced: 2025-04-12T01:54:56.758Z (over 1 year ago)
- Topics: docker, typescript, vuejs, world-of-warcraft
- Language: TypeScript
- Homepage: https://www.wowpay2win.com
- Size: 2.6 MB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WoWPay2Win
At the beginning of the Ny'alotha raid in BfA, having the right corruption on gear drops (also available on BoEs) meant massive DPS increases. The gap was so big that it was nearly impossible to compete against players with BiS. As a result, many competitive players transferred to other realms and back just to buy their BiS for millions of gold.
Thankfully it was eventually remedied through the corruption vendor and removed after one tier. Nowadays, this tool simply scans for BoEs in every auction house across each region.
## Architecture
This app consists of two parts:
1. **Website:** (`src/web`)
- This is a SPA built using Vue.js
2. **Cron Script:** (`src/scripts`)
- This is a cronjob responsible for fetching auction house data from Blizzard's API
These two parts are completely independent from each other where their only communication channel is through the generated `json` data files.
## Dev Setup
```bash
# Runs linter
pnpm lint
# Download game data from the API (localized item names and icon files) before building
pnpm fetchItems
pnpm fetchBonusIds
# Starts webpack-dev-server on localhost:8080
pnpm devWeb
```
## Building for Production
```bash
# Define CLIENT_ID and CLIENT_SECRET in this file
touch .env
make build # Creates Docker images
make run # Starts Docker images
```
## Add New Tier
1. Create new file in `data/tiers/config` directory that default exports a `TierConfig` object. This config will be dynamically loaded via Webpack. The file should be of the form `XX-YY-descriptive-name` where `XX` is the expansion number (e.g. 07 for BfA) and `YY` is simply a number used to order the config (the last file in the filesystem will be considered the default/latest tier).
2. Run `pnpm fetchItems` and `pnpm fetchBonusIds` to regenerate data files
### Tip
Run this script in your browser dev console to quickly extract item ids from Wowhead's item search
```js
// https://www.wowhead.com/items/quality:4?filter=3:82:161:128;1:2:1:4;0:110002:0:0 (for raid boe)
// https://www.wowhead.com/items/name:Design/quality:3:4?filter=99:166:92;11:11:2;0:0:0#0-14+19 (for profession)
$('table.listview-mode-default').find('td:nth-child(3)').find('a.q4, a.q3').each((idx, el) => {
const href = $(el).attr('href')
const id = /(\d+)/.exec(href)[0]
console.info(`${id}, // ${href}`)
})
```
## Setting up GitHub Actions
Secret | Description
--- | ---
`SSH_USER` | Username of server
`SSH_HOST`| IP address of server
`SSH_PRIVATE_KEY`| `ssh-keygen -N '' -f ~/.ssh/github-actions -C "github-actions"`
Add `github-actions.pub` to `~/.ssh/authorized_keys`
Add `github-actions` to this secret
`SSH_KEYSCAN`| `ssh-keyscan -t ecdsa SSH_HOST`
### `ENV_FILE`
```sh
# From https://develop.battle.net/access/clients
CLIENT_ID=
CLIENT_SECRET=
# From Settings > Developer Settings (Auth Tokens)
SENTRY_ORG=
SENTRY_PROJECT=
SENTRY_AUTH_TOKEN=
```