Video by Codesistency · streamed from YouTube. All rights remain with the creator.
Lesson 3: A Full-Stack Music Platform with the MERN Stack
About this lesson
This long project tutorial from Codesistency builds and deploys an advanced music streaming application in the style of a popular service, using the MERN stack of MongoDB, Express, React and Node.js. After a demonstration of the finished app, it sets up the front end and authentication, then builds the back end. You set up the server and the database, write the logic that creates users when they sign up and add middleware that protects routes so that only signed-in users, and for some routes only the administrator, can use them. Routes and controllers are written for the admin, albums, songs and users. Back on the front end, the tutorial creates an authentication provider and a callback page that connects sign-in to the back end, then builds the main layout with its left sidebar, an album page and a friends activity panel that shows what other users are doing. The home page follows, and then the heart of the app: playing songs with a queue, a reusable play button and full playback controls. An admin page lets the administrator add new songs and albums to the catalogue. The tutorial then implements Socket.IO for real-time features, showing which users are online and what they are listening to, and builds a chat page so that users can message each other instantly. A custom 404 page is added, and the final sections cover detailed deployment of the whole application and final tests. Afterwards, read Chapter 3 of the course book, which works through the queue and real-time messages by hand.