/musicmanparmreact

Front-end single react page for submitting Alexa Music Man parm corrections.

Primary LanguageJavaScript

MusicManParmFixer (React)

This project is the front-end portion rewrite of a previous node/express monolithic version of MusicManParmFixer, which contained both front end and backend logic.

It's purpose is to provide a more modern front end that written in React, that accepts corrected data for the Alexa Music Man service. Some words that Alexa hears when the customers provide input (for artists or venues) are misinterpreted, such to not allow the SongKick api to find data. e.g Alexa sometimes hears 'Reanna', not 'Rhianna'

The corrections made using this app get sent to a backend REST API via API Gateway, and onto a serverless lambda Database app. (GoMusicManParmFix), The Alexa Music Man service can then use the database to locate corrected values to use for it's SongKick API lookup.

Notes

REQUIRED, but not included in this repo.. A .env file should be created at the root of the project, and should contain two environmental variables: REACT_APP_COGNITO_URL='YOUR_COGNITO_AUTHENTICATION_URL' REACT_APP_PARMDATA_API_URL='YOUR_BACKEND_DATABASE_HANDLER_API_URL'

This COGNITO URL is used in the index.js file for redirecting for authentication and looks similar to: https://YOUR_APP_NAME.auth.us-east-1.amazoncognito.com/login?client_id=YOUR_CLIENT_ID&response_type=token&scope=email+openid&redirect_uri=YOUR_CALLBACK_URL