Web/ HTML5 Audio Player Written In React
Having written an audio player in the past, under strict time constraints, I wanted to see if I can make a better one.
I will potentially end up open-sourcing this.
Apologies in advance for the test tracks included. They are tracks I made ~10 years ago.
Currently vitest with react testing library is set up for unit tests.
# run unit tests
npm test
# run unit tests with coverage
npm run test:coverage
Then Chromatic can be used to do visual regression tests on components.
Note: Because I still need to work out centralised state management from the player -> components. I'm holding off on RTL tests for now as i'd probably just end up having to re-write them.
npm run documentation:generate
Runs typedoc against the Player model code.
npm run documentation:open
Opens docs/typedoc/index.html
to see the generated API documentation.
Instead of manually creating specific components with all required features as a first pass I've decided to use Chakra UI.
The main benefits of Chakra are significant time-saved. And the ability to handle all of the UI-related requirements without having to install multiple dependencies. Finally, it has rich accessibility features built in.
I wanted to try this with figma integration to see how it works.
To deploy you need an .env
file at root containing:
CHROMATIC_PROJECT_TOKEN='<project token>'
Then run the script to build and deploy storybook with:
npm run chromatic:deploy
* don't think its worth remaking
Generated using TypeDoc