DEV Community

Cover image for My Online Radio Reached 100K Plays in 2 Months 🤯 Here's How I Created It 🎉
Madza
Madza

Posted on • Originally published at madza.dev

My Online Radio Reached 100K Plays in 2 Months 🤯 Here's How I Created It 🎉

Creating a radio app was a project that I had in mind for quite a while. I have always felt a special connection to music. It has always inspired me and boosted my productivity.

A while ago I also did a discussion asking do other developers prefer music while coding. I was surprised by the amount positive responses, so I wanted to execute the idea even more.

I started to build DevTunes FM. Initially, it was meant as a pet project for personal use, but the more time I spent on it, the more it started to take shape of something the developer community could benefit from as well, so I decided to share it with the public.

Main

The project is live at: radio.madza.dev

Since I went through multiple phases of planning and executing I thought it could be valuable to create an article about the process and show you the features.

Planning

From the beginning my main focus was simplicity. I've never been a fan of complex layouts and multi-level settings. I wanted to create a radio, that is straightforward for listening to music and easy to understand on the first visit.

I also focused on usability. This meant the radio should be adjustable to different moods and various musical genre preferences. It also should be used anywhere - while coding, exercising, or on the commute, for example.

Finally, the radio should have a nice design. The UI/UX should feel smooth and look great on different devices. The user should be allowed to customize the look and behavior of the radio.

enter image description here

Features

Once I had defined the main characteristics, it was time to identify the specific features.

I came up with the following list:

  • Change stations
  • Change backgrounds
  • Play/pause
  • Repeat track
  • Volume controls
  • Recent played list
  • Save last settings
  • Responsive design
  • Loading screen

Wireframes

To put the features in the UI, I created wireframes for the components.

I started with the dropdown for switching the stations. Once the dropdown is opened, the list of available stations is shown and the currently active station is highlighted.

enter image description here

To control the play state of the radio, there is a component with alternating play and pause icons as well as the title of the currently playing track.

enter image description here

In order to open different panels of the settings, control the volume and repeat the current track, I created navigation consisting of several icons.

enter image description here

The previous tracks panel displays the last tracks that have been played on the radio. Users can click on any track on the list to start playing it. The settings panel lets the user control the behavior of the radio. Both panels can be closed by clicking outside of them.

enter image description here
I used Figma to make these wireframes. You can also check out Diagrams.net, which is another amazing tool.

Design

Next, I had to create a design for the radio. In this phase, I focused on how to position the components and how to make the project look and feel great.

To achieve that I created 10 different themes.

The source for wallpapers is Wallhaven. Icons are taken from FlatIcon.

Theme 1

Main

Background from: source

Theme 2

Main

Background from: source

Theme 3

Main

Background from: source

Theme 4

Main

Background from: source

Theme 5

Main

Background from: source

Theme 6

Main

Background from: source

Theme 7

Main

Background from: source

Theme 8

Main

Background from: source

Theme 9

Main

Background from: source

Theme 10

Main

Background from: source

Stations

DevTunes FM was designed to be electronic music radio. Electronic music includes tons of genres and subgenres, so creating the right stations was a challenge.

I spent a lot of time browsing the available playlists on SoundCloud and played through all the individual tracks to decide if the content matches what I would want to include on the radio.

I ended up creating 28 stations. Down below is the full list and their curators:

Each time the user visits the radio the tracks on each station are randomly shuffled, so the sequence of tracks is always unique.

Stack

The radio is written in NextJS. It has awesome features such as API routes, data fetching, built-in support for CSS modules, static file serving, environment variables, hot reloading, and so much more stuff, that I made use of while creating the app.

The audio source is SoundCloud API. It allows developers to get the data about the users, tracks, playlists, likes, reposts, comments, comments, favorites, followers, and other useful data.

I used Vercel for deployment. Deploying the app is as simple as hosting the source on the GitHub and then importing it in the Vercel. It will do all the heavy lifting - build processes and configuration for you behind the scenes. All you need to do is set up environmental variables.

Mobile responsiveness

One of the priorities of the radio was for it to be fully responsive for different screen widths. This way the radio could have been efficiently used on multiple devices.

To achieve that, I set up a media rule at 700px, where the UI switches from top and bottom navigation to the fullscreen interface.

Main

Conclusion

A couple of years ago creating my own radio app was a dream. Now I am happy to see coding as a powerful tool that can be used to help other developers on their path.

Hopefully, DevTunes FM will make your developer flow more productive. Feel free to try it out and see if you like it. Feedback is always welcomed.

In the future, I will focus on improving the current code base, test it and keep exploring new music to add them to the radio.

Feel free to submit feature requests, music recommendations, or other related stuff to hi@madza.dev.

Let's connect!

Writing has always been my passion and it gives me pleasure to help and inspire people. If you have any questions, feel free to reach out!

Connect me on Twitter, LinkedIn and GitHub!
Visit my Portfolio for more projects.

Oldest comments (24)

Collapse
 
brandonwallace profile image
brandon_wallace

Very nice project. When I click on 'settings' or 'profile' icons it is hard to read the text in the modal windows.

Collapse
 
madza profile image
Madza

Thanks a lot! Great to receive the feedback 🙏❤

Collapse
 
lsluislora profile image
Lsluislora

Great bro!! Nice job 👌👌

Collapse
 
madza profile image
Madza

Thank you so much 🙏❤

Collapse
 
andrewbaisden profile image
Andrew Baisden

Good job!

Collapse
 
madza profile image
Madza

Thanks for the feedback 🙏❤

Collapse
 
tutaru99 profile image
SimasR

Really cool project and great design!

I also had a mini-project of creating a radio station website in the past, here's the link: tutaru99.github.io/Internet-Radio-...
Check it out, it's nothing special but you might get some inspiration on implementing some features in yours.

Collapse
 
madza profile image
Madza

Thanks for checking it out 🙏❤
Your looks like it would even deserve its own backend to save all the favorites, recently listened stations, listening stats, user settings and so on 👍😉

Collapse
 
mauricio094 profile image
Mauricio Fernandes

Great Job I already using it, the music's are really good haha
How were the main methods to promote the radio?

Collapse
 
madza profile image
Madza

Thanks a lot, great to hear you like it 🙏❤
I posted it on the ProductHunt, Hashnode and Reddit on the initial release, I guess thats where the first traffic came from 😉

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
madza profile image
Madza

Thanks for checking it out! 🙏❤

Collapse
 
arunabraham9947 profile image
arunabraham9947

Good job!

Collapse
 
madza profile image
Madza

Thanks a lot for the feedback 👍🚀

Collapse
 
maximusblade profile image
Peter Sserwanga

This is cool project
Well done

Collapse
 
madza profile image
Madza

Thanks for the feedback 🙏❤

Collapse
 
odapx profile image
Odap

Amazing stuff, always a pleasure reading ur blogs

Collapse
 
madza profile image
Madza

Thanks a lot! Means so much! 🙏❤

Collapse
 
gateremark profile image
Mark Gatere

This is super awesome...
Wish you had attached the link to the source code, haha

Collapse
 
madza profile image
Madza

Hahah, thanks for the support, Mark 👍💯💖

Collapse
 
devluc profile image
Devluc

Great project Madza. I often find myself tuning in. Love the minimal and beautiful UI

Collapse
 
madza profile image
Madza

Thanks a lot, Lucian! Enjoy the listening pleasure!👍💯

Collapse
 
olivia578 profile image
Olivia Anderson

Congratulations on hitting 100k plays for your online radio! Your insights into building and promoting the platform are valuable. If you're interested in taking it further, exploring aspects of music app development could enhance the user experience and open up new possibilities. Thanks for sharing your success story!

Collapse
 
madza profile image
Madza

Thanks a lot for checking out DevTunes FM! Also, great article by yourself! 👍💯