Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Decoupled Drupal/React project using the Album of the Year List Project dataset

Notifications You must be signed in to change notification settings

backlineint/aoty-visualizations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Album of the Year List Project Visualizations

Migrates data from a Google Spreadsheet into a Drupal instance that serves as an API for a React app built using Gatsby. Hopefully provides a fun way to experiment with the awesome Album of the Year List Project data and discover new music.

Visualizations based on data from http://robmitchum.github.io/aotysheets.html

App available here: http://brianperryinteractive.com/aoty-visualizations/

Storybook available here: http://brianperryinteractive.com/aoty-storybook/

Local Environment Setup

Prerequisites:

Run the install script using:

./scripts/install.sh

This will create a Drupal instance with initial seed data available at http://aoty.lndo.site and will run Gatsby in develop mode at http://localhost:8000/

To stop the running Drupal instance run:

lando stop

To restart the Drupal instance and run Gatsby in develop mode run:

  • lando start
  • cd gatsby
  • npm run develop

Slides and Talks

Full slides available here: http://brianperryinteractive.com/aoty-slides/ (or PDF version note: doesn't contain all dynamic content)

The talk 'Hot JAMS(tack): Building a Music Discovery App with Drupal and React' has been presented at:

Related talk 'Storybook: An Interactive Pattern Library for Your Decoupled Applications' has been presented at:

Slides: http://brianperryinteractive.com/storybook-slides

Migration

Migration of album of the year data can be run manually by enabling the aoty_migrate module:

lando drush en aoty_migrate

You'll also need to specify your own SpotifyWebAPI credentials in drupal-project/web/modules/custom/aoty_migrate/src/Plugin/migrate/source/AlbumSourcePlugin.php (This will be made configurable via Drupal at some point...)

and then running:

lando drush migrate-import --group=aoty -y

Older versions

The previous version of this project can be checked out using the 1.0 tag. 1.0 contains a Drupal instance based on the (now deprecated) Reservoir Drupal Distribution and a React app that interacts with Drupal's API on app load.