- 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.
- Add a file to
server/functions/videos/ARTIST_ID.js
with the values from thetypes
files - Create an empty file at
server/data/ARTIST_ID.json
- Add an entry to
client/artists.json
with a matchingid
and thename
which will populate the button on the index page - Run
npm run data ID
to save the data toserver/data/ARTIST_ID.json
- Run
npm run data:fixtures ID
to see a visually easier to parse representation of what is parsed from that artist's data
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