This application is a simple UI to interact with a GraphQL server that regulates the mocked state of an IoT light.
To run the repo, clone locally. Install all dependencies using 'npm install'.
After dependencies are installed, use 'npm run start' to start the frontend at localhost:3000.
A toggle switch allows a user to toggle a light off/on. The slider adjusts the brightness value and displays the current value in percentage.
The frontend corresponds to a GraphQL that must be running in order to have a response and function correctly. It is currently set to BASE_URL as 'localhost:4000' in src/actions.