LUSHDigital / lrpi_scentroom_ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lush ScentRoom Colour and Audio Uploader

NOTE: SWAGGER NEEDS UPDATING

React application interactive colour and audio uploader for use with Lush Spa treatments.

UI Features

  1. File Selector - Select audio file to play through audio system
  2. Colour Picker - Select hexadecimal colour value to display dynamic lighting
  3. Submit - Send selected values to the flask server
  4. Test - both press and hold to test the audio/lighting and start forever and end that same start

How to output to Lush Scentroom Flask app

  1. Navigate to the project directory in terminal
  2. Run 'npm run build' - This will output to the local project build folder
  3. Copy build folder directly into flaskLushProject directory
  4. Then follow instructions given in Lush Scentroom Flask App

Helpers

'npm start'

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About


Languages

Language:JavaScript 86.1%Language:CSS 10.6%Language:HTML 3.2%