MP3 frame counter aims to provide an API endpoint that accepts an MP3 file and responds with the number of frames in the file. The endpoint should successfully count the number of frames for MPEG Version 1 Audio Layer 3 files.
Documents used:
I assume that docker is both installed and running. https://docs.docker.com/get-docker
- Clone the repo
- Please use Yarn as a package manager
- Build the Docker containers
- Access the app via Svelte http://localhost:5173/
git clone https://github.com/paulambanks/mp3-file-analyser.git
cd mp3-file-analyser
docker compose up# API
Express Server is running on http://localhost:3000
# SVELTE FE
Svelte app is running on http://localhost:5173
Access API codebase and run tests
cd apps/express-api
yarn test- Directly with the API (Curl) - with already existing sample or by passing a new filepath
curl -Ss -X POST http://localhost:3000/file-upload -F "file=@apps/express-api/fixtures/sample.mp3"- Front-End uploader
Successful upload:
Errors:


