Skip to content

Build a Spotify Clone with Cursor

Category Design & Frontend
Status ๐ŸŸก Partially completed
Repo nextwork-build-a-spotify-clone-with-cursor
Original NextWork guide nextwork.ai

Learning project

Practice work following a NextWork guide, separate from my production projects.

๐Ÿ“š NextWork learning project. This is a practice project I built while working through NextWork's Build a Spotify Clone with Cursor guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning โ€บ Design & Frontend
Status: ๐ŸŸก Partially completed

Overview

The queue is the part of a music app where the small details matter: what happens when you move or remove the song that's playing. I kept that logic in its own module, tested those edge cases directly, and then drove the real page in a browser.

Summary

I built my own small music player web app (Tune Queue) with a library of five tone tracks I generated myself and a full play queue: add to queue, play next (inserted right after the current track), move up and down, remove, next and previous, clear, and auto-advance when a track ends. The queue and the playing position are saved in localStorage, so they survive a reload. The queue logic is a DOM-free module with its own unit tests, including the edge cases of moving or removing the playing track, and a headless Chrome walk-through passes 8 of 8. Partial: Cursor wasn't used (I wrote it by hand), and it's a static local app with no accounts, streaming service or real music.

The checks behind this are in docs/verification.txt.

Skills & tools

JavaScript (ES modules), HTML/CSS, HTML5 audio, localStorage, Playwright, ffmpeg

What I built

  • queue.js: the queue (add, playNext, remove, move, next, prev, clear) that keeps the playing position correct whenever items shift.
  • index.html: library, now-playing panel, queue with reorder and remove buttons, transport controls, auto-advance and localStorage persistence.
  • make_audio.sh and audio/: five short tone tracks generated with ffmpeg. tracks.json holds the made-up titles and artists.
  • tests/queue.test.mjs (unit), tests/ui_check.mjs and tests/run_ui.sh (browser, 8 checks). docs/player.png is the screenshot.

How to run

python3 -m http.server 5195     # open http://127.0.0.1:5195/index.html
sh tests/run_ui.sh

Verification

I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.

PORT=5295 sh tests/run_ui.sh 2>&1 | tail -2; PORT=5295 sh tests/run_ui.sh 2>&1 | grep -q 'UI OK' && echo PLAYER OK

What isn't done, and why

No Cursor: I wrote the code by hand. There's no backend, account, streaming or real music; the tracks are generated tones and the app is served locally.


Original project: https://nextwork.ai/projects/195dd97d-6a9f-58e5-bbe2-0d80d9daf635 ยท Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ PORT=5295 sh tests/run_ui.sh 2>&1 | tail -2; PORT=5295 sh tests/run_ui.sh 2>&1 | grep -q 'UI OK' && echo PLAYER OK

UI 8/8
UI OK
PLAYER OK

[exit code 0]