In this repository we will build a visualization of the other teams aggregated data.
The widgets are hosted on:
- Timeline: http://mcmwidgets.azurewebsites.net/widgets/timeline-app.html
- Relations: http://mcmwidgets.azurewebsites.net/widgets/relations-widget.html
- Map: http://mcmwidgets.azurewebsites.net/widgets/map-app.html
The widgets present data concerning an artist or a work. There are three possibilities to tell the widgets which entity should be displayed:
- Pass the link to the corresponding page on IMSLP:
open http://mcmwidgets.azurewebsites.net/widgets/timeline-app.html?imslp=http://imslp.org/wiki/Category:Bach%2C_Johann_Sebastian
- Pass the entityId and entityType (there are two types: "work" and "artist"):
open http://mcmwidgets.azurewebsites.net/widgets/timeline-app.html?entityId=550e8400-e29b-11d4-a716-446655440000&entityType=artist
- Use the widgets as React-Component:
import Application from './components/timeline-app/Application';
<Application entityType={entityType} entityId={entityId} />
The documentation and a demonstration of how to include the widgets in a iframe is here.
https://hub.docker.com/r/musicconnectionmachine/widgets/
- Navigate to express folder
- Run
yarn install
to install dependencies
- Run
npm run dev
to start server in development environment - Run
npm run lint
before commiting to check code style - Run
npm run lint-fix
to try to automatically fix style errors
- Run
npm install -g forever
- Run
npm run prod
to start server in production environment
- Navigate to react folder
- Run
yarn install
to install dependencies
- Run
npm run dev
to start webapck server in development environment
- Run
npm run build
to compile the react resources and make them available for express