Menu

Building a three-question quiz that finds your breakup song
📰

Building a three-question quiz that finds your breakup song

DEV Community: react·Robert Stowe·7 days ago
#Aga6Qn7K
#devtoreact#devto#dev#song#songs
Long article (528 words) — no AI summary yet.
Reading 0:00
15s threshold

Most songs are about falling into love or out of it. I was explaining that to my kid, and I added that when it happens to you, you should find the song that speaks to you. The conversation stayed with me, because it sounded like a fun project to help people find that song. So, I took the idea and built it the way I would lead any project. The result is Find Your Breakup Song (mozum.com) , a quiz that takes three taps on a phone.

How it works

In three questions, the quiz seeks to learn who ended it, how you feel, and which world you live in. The logic that chooses the song is tied to your answers, and the questions and answers can change every time, for a slightly different result. You get a lead single and three B-sides from a catalog of 3,281, with links to six music services. It is written for adults, so explicit songs are in.

How it is built

It is a React 19 app built with Vite, styled with Tailwind CSS and daisyUI, with no router and no state library.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.