This is an interview application built for Virtuoso
Welcome to this sample application that leverages the API endpoints against The Metropolitan Museum of Art Collection API.
- Application loads the data from the collection by meta date changed after
https://collectionapi.metmuseum.org/public/collection/v1/objects?metadataDate=2024-09-01
- Data is then sent to search components
- Search result controls the ids and paging of the results
- Search result item loads the data from the id and displays the contents
This project was built using the default Vite React template.
- Make sure to set all your .env variables.
- The
.env
file in this repository has the necessary keys you must fill out
VITE_APP_NODE_ENV=<fill in a value other than production for testing>
VITE_APP_ITEMS_PER_PAGE=<number of items per page, 5 is default if left blank>
VITE_APP_DAYS_IN_RANGE=<number of days available to search, 90 is default if left blank>
- Node.js Please install at least Node.js version
v22.1.0
andnpm
. - Run
npm install
to initialize all the dependencies
- Add a lab test method for the API validation, flipping to an environment variable above to something not production shows and pass test data
- Signup for a free Render account. You won't regret it :)
- Connect your GitHub account
- Choose the
Static Site
option - Setup a name
- Use the defaults and set the
Build Command
tonpm install; npm run build
- Make sure to copy your data from your
.env
file you setup earlier into theEnvironment
settings - Trigger a manual deployment