Skip to content

Latest commit

 

History

1,419 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome

I'm just screwing around working on stuff that might be useful

The Site

The gallery pulls from three museum APIs: The Art Institute of Chicago, Harvard Art Museums, and The Victoria and Albert Museum.

Running it

@ryandur/sand installs from GitHub Packages, so npm needs a token with read:packages in your ~/.npmrc:

//npm.pkg.github.com/:_authToken=<your token>

The museum domains and keys live in an untracked .env (AIC and the V&A need no key; Harvard's is free at the link above):

VITE_APP_API_AIC=https://api.artic.edu/api/v1/artworks
VITE_APP_HARVARD_API=https://api.harvardartmuseums.org/object
VITE_APP_HARVARD_API_KEY=<your key>
VITE_APP_VAM_API=https://api.vam.ac.uk/v2

Then the usual:

npm install
npm run dev
npm test

Git hooks

Activate the repo's quality gates once per clone:

git config core.hooksPath scripts/git-hooks

pre-commit runs lint, typecheck, and the unit suite in seconds; pre-push adds stylelint and the production build. CI audits the deployed site (smoke, axe, Lighthouse) — the hooks catch everything catchable before the round-trip.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages