An internet radio for frontend tech testing.
Requires node >v16. Uses vite.js and react.
- Refactor the app so it fetches radio stations and related data from the server:
/api/index.json
- Implement play/pause
- Control the HTMLMediaElement (
<audio ... />
) via a DOM node reference in react. The play/pause methods can then be controlled from the respective buttons. See the docs on HTMLMediaElement instance methods. - Disable the browser control by setting
const SHOW_NATIVE_CONTROLS = false
.
- Control the HTMLMediaElement (
- [TODO] ensure the app matches the designs
- Create the ability to cycle between the stations
- Ensure all station logo's are rendered
# Install dependencies
npm install
# Run the server
npm run dev