This fetches, enriches, and stores vinyl collection data for wax.tylergaw.com.
The front-end repo for this is github.com/tylergaw/wax
- node.js
>=20.6.0
: This uses node features that aren't available in earlier versions - OpenAI: Used to enrich collection data. Right now, only for determining machine and human readable vinyl color/pattern
Run all tests once:
yarn test
Run tests and watch for changes:
yarn test:watch
Everything is done through scripts in package.json
This is likely what you want. This runs everything needed to fetch latest collection from Discogs, enrich the data with OpenAI, upload the JSON files to S3, and rebuild the site in Netlify.
yarn update
Fetch Discogs collection and prompt to ask if you want all pages:
yarn fetch
Fetch Discogs collection and skip prompt to ask if you want all pages:
yarn fetch:skipPrompt
This depends on the output file from fetch
. Uses OpenAI to enrich the collection data. Right now, this only tries to determine machine and human-readable color of the vinyl based on the descriptions available.
yarn enrich
Uploads the generated JSON file(s) to an S3 bucket.
yarn upload
Rebuilds the Netlify site via web hook.
yarn rebuild