Chrysolites Tech Academy

Video by JavaScript Mastery · streamed from YouTube. All rights remain with the creator.

Lesson 2: A Music Streaming App with React and Redux

About this lesson

This project tutorial from JavaScript Mastery builds and deploys a music streaming app in the style of a popular service, using React 18, Tailwind CSS for styling, Redux Toolkit for state and a music API from the RapidAPI marketplace for real song data. After an introduction to the finished app and the project setup, it builds the Discover section, where songs can be browsed by genre, and shows how to fetch music data from the API with Redux Toolkit's query tools. Loader and error components handle the waiting and failure states, and a song card component displays each track with its artwork. The tutorial then implements play and pause, so that clicking a card starts the music in a player that stays on screen, and builds the sidebar used to move around the app. A top play section shows the leading chart songs and a swiping carousel of top artists made with the Swiper library. The next parts create a song details page, with information about the track and related songs, and an artist details page. Further pages show music popular around the user's location, the top charts and the top artists, all reusing the same components. A search feature lets users find songs by name, and the final part deploys the finished app so that it can be shared online. The project is a thorough introduction to building a polished, data-driven React app with global state. Afterwards, read Chapter 2 of the course book, which works the player controls and caching by hand.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.