Preloaded Playlist Links
- Ben Folds – Apartment Requests - LFQ YouTube
- Ben Gibbard – Live From Home - LFQ YouTube
- The Hood Internet - LFQ YouTube
- Sean Bonnette – Live From Quarantine - LFQ YouTube
- The Tallest Man on Earth – #StayHome #WithMe - LFQ YouTube
Preloaded playlists are fetched and saved to this repo. This can also be triggered via a
respository_dispatch action. A quick script to do this is run via
npm run trigger. They are also pushed to the database on each push to the main branch. The data is stored in the repo to make deploys faster and less likely to fall since the YouTube API has some transient errors sometimes.
Adding a Preloaded Playlist
- Add a file to
server/functions/videos/ARTIST_ID.jswith the values from the
- Create an empty file at
- Add an entry to
client/artists.jsonwith a matching
namewhich will populate the button on the index page
npm run data IDto save the data to
npm run data:fixtures IDto see a visually easier to parse representation of what is parsed from that artist's data
Building the site
This will build a production version of the site. Any data previously preloaded via
npm run data will be parsed into the correct API format and moved to the build directory.
NODE_ENV=production npm run build
This will spin up a dev server for the API and run the client locally. The dev server will use the preloaded data for the available playlists and load the rest directly from YouTube. The responses from YouTube will be cached while the dev server is running to cut down on YouTube API requests.
npm run dev