Build a Music app using VueJS | Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • Learn how to code a VueJS Music app that uses the HTML5 Audio Element API to play music. We use VueJS reactive features including lifecycle methods, data and methods to create a beginner friendly music app with playable playlist.
    A Javascript Project
    Day 7 #31Days31Videos
    Source Code: github.com/TylerPottsDev/vuej...
    // JOIN THE DISCORD
    / discord
    // MY GEAR FOR CODING AND RUclips
    Blue Yeti Microphone: amzn.to/3jr3l7T
    Microphone Stand: amzn.to/35B9LMN
    Chair: amzn.to/3dWds3F
    Thunderbolt Dock: amzn.to/3osBF6u
    Monitor: amzn.to/37I8KoR
    All of these products I own and have tested!
    FOLLOW ME ON TWITTER!!!
    / tyler_potts_
    LIKE, SUBSCRIBE & SHARE
    Music
    DEAF KEV - Invincible (NCS Release)
    Neffex - Grateful (NCS Release)

Комментарии • 103

  • @TraversyMedia
    @TraversyMedia 4 года назад +114

    Good stuff man. Keep it up :)

    • @TylerPotts
      @TylerPotts  4 года назад +14

      The King of Coding Tutorials has appeared. I'm totally not fan girling.
      Thank you! I really appreciate it! 😁

    • @TraversyMedia
      @TraversyMedia 4 года назад +10

      @@TylerPotts No problem. I know how difficult it is to do content like this so often. Great job though, really. Keep going, just be sure not to overwork yourself. Got a new sub :)

    • @TylerPotts
      @TylerPotts  4 года назад +6

      Thank you. Keep doing what you do! 😱

    • @Tuchauaa
      @Tuchauaa 4 года назад +5

      @@TylerPotts Best cross-over, best beasts! @traversy and @tyler

    • @TylerPotts
      @TylerPotts  4 года назад +4

      I'm not sure I compare but thanks! 😂

  • @liltots
    @liltots 3 года назад +5

    This is a definition of a great tutorial, I found it very easy to understand! Great work, keep it up!

  • @kc2838
    @kc2838 4 года назад +2

    This is really good. Great work.

  • @Webnoob
    @Webnoob 4 года назад +2

    Tyler, it's going great! Amazing work 👍

  • @patriot159
    @patriot159 4 года назад +1

    Thanks! I learnt a lot from this tutorial... it's amazing :)

  • @NeelanshMathur
    @NeelanshMathur 4 года назад

    This was good. Precise and cool!

  • @MichaelNeelyTech
    @MichaelNeelyTech 4 года назад +9

    This was also a lot of fun too. This was my first exposure to Vue.js. Now to find some more stuff to build.

    • @TylerPotts
      @TylerPotts  4 года назад +6

      Ay! That's Awesome i have a few things on my channel but I know another channel called webcodenoobs who has loads of Vue videos

    • @00el04
      @00el04 3 года назад +2

      @@TylerPotts, is that still his youtube channel name? I can't seem to find it.

  • @jalalsyednaveed5527
    @jalalsyednaveed5527 4 года назад

    Amazing coding, really enjoying your channel. Thanks , that i finally found a good channel :).

  • @soufianemchanna6251
    @soufianemchanna6251 2 года назад

    It's a great tutorial that I haven't seen in a long time

  • @juandavidgomezrestrepo6110
    @juandavidgomezrestrepo6110 3 года назад

    I literally basing my #100DaysOfCode with your tutorials. thanks a lot Tyler Potts

  • @dinchen_tamang684
    @dinchen_tamang684 3 года назад

    I learnt a lot from this tutorial. Thank you.

  • @historymobile6210
    @historymobile6210 4 года назад

    Let's goo. Please do more these kind of videos they are great. By the way the your accent makes me code faster 👀

  • @SamWelker
    @SamWelker 3 года назад

    definitely looking like spotify here, nice vid :D

  • @nicholask1906
    @nicholask1906 4 года назад

    Very nice tutorial. Hope you do more Vue Tutorial like this. Simple yet effective way to learn about VueJS.

  • @fullstack5008
    @fullstack5008 4 года назад +1

    Great channel to learn new things daily 😍😍😍

  • @NeniEmSu
    @NeniEmSu 4 года назад +7

    Awesome video man you're slowly becoming my best dev / Frontend channel this 2020.
    The playlist would be awesome, and maybe integration with vuex so the player can play even if the user navigates multiple pages.

    • @TylerPotts
      @TylerPotts  4 года назад

      Yes this is something we could look at :)

    • @motadaymane3262
      @motadaymane3262 4 года назад +2

      And maybe some local storage so even if it refreshes it keeps the same song :)

  • @aminansarimehr9464
    @aminansarimehr9464 Месяц назад

    This is awesome ❤️🔥

  • @rahman-thecomputerguy7045
    @rahman-thecomputerguy7045 4 года назад +4

    Awesome UI 😍

    • @TylerPotts
      @TylerPotts  4 года назад +2

      Ha, don't judge the UI before you see the video... 😂😂

    • @djRichyRichh
      @djRichyRichh 4 года назад +1

      hahahaa :D

  • @tomasburian6550
    @tomasburian6550 2 года назад

    Thanks for the video, works great for learning the framework. The only things I'm missing here is a progress bar so I can slide around the song but I'll see if I can figure it out.

  • @mylesdavies9476
    @mylesdavies9476 3 года назад

    Nice one, thanks 👍

  • @MM-um1sq
    @MM-um1sq 3 года назад

    that was awesome, thanks

  • @luhtaubabr2136
    @luhtaubabr2136 4 года назад

    this really helped me thanku sir

  • @olavictor6286
    @olavictor6286 9 месяцев назад

    Great video

  • @a.panfilov.s
    @a.panfilov.s 4 года назад +1

    Nice work man !
    Could you say please, what theme are you using in VSCode?

  • @UkAlien
    @UkAlien 3 года назад

    Hey great video! I have a question though. I am making a music player with more than 2 songs. With your code the prev and Next buttons don't work when there are more than 2 songs. That is because it makes the next or previous index 0. Then if you click randomly on another song (lets say you jump 3 songs in the list) and then press next. It selects the next song from the last time you pressed next or previous and not from song you jumped to. Can you give a tip or line of code to resolve this problem?

  • @husniddin_sunnatov
    @husniddin_sunnatov 2 года назад

    thanks brother, very much

  • @billykiwee
    @billykiwee 2 года назад

    Vue is just incredible!

  • @GGdevelopment
    @GGdevelopment 4 года назад

    Good stuff hombre! lol

  • @huseynovorkhan
    @huseynovorkhan 3 года назад

    I need this wallpaper!! :)

  • @ahmedelesawy6805
    @ahmedelesawy6805 3 года назад

    Thanks is not enough ❤❤❤

  • @sheldonfourie5959
    @sheldonfourie5959 4 года назад

    Could you do a movie or song recommendations tutorial based on users behavior

  • @seebo5548
    @seebo5548 3 года назад +1

    Nice Man

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    awesome

  • @aarondurante1385
    @aarondurante1385 3 года назад

    Hi, Sir. I hope you will also create a simple Year In Pixels app in Vue.js. Thank you. Great content! 👏

  • @dudzpedra
    @dudzpedra 3 года назад +3

    First of all, I really relate to your teaching method, the fun teacher! Thanks for the tutorial, it is really light to follow and great to work on some skills! I've ran into some bug: when i try to go next many times, the prev button stops working and the console let me know that it cannot read property title of undefined. any thoughts? =)

    • @dudzpedra
      @dudzpedra 3 года назад

      when i get the bug, the other buttons still work fine, it's only the prev and next that stops working and keep throwing the same error as I mentioned before ;)

  • @robinsonnunez4022
    @robinsonnunez4022 4 года назад

    i would like to know how can i add img as wallpaper. excellent video

  • @mr_funtor
    @mr_funtor Год назад

    Hey Tyler. Nice one. You can revisit this, and build on it with components.

  • @joselife-on4029
    @joselife-on4029 Год назад

    What happen with the background task? Can this app play music with phone close?

  • @AliceTrap
    @AliceTrap 3 года назад

    maybe you have the video with the project like this but also with node js?

  • @NERO-ez1mn
    @NERO-ez1mn 2 года назад

    will there be a react version on this?

  • @denncriss3082
    @denncriss3082 4 года назад

    I only speak Spanish and there is not much content about flights... Your channel is super interesting go ahead

  • @iKyroja
    @iKyroja 4 года назад +3

    you just should have called this.next() in the event listener instead if duplicating code.
    You could even call next() directly instead of wrapping it in another function.
    And instead of using bind(this) you could use an arrow function ( () => { } ), less code and looks cleaner.

  • @00el04
    @00el04 3 года назад +1

    Do you’ve more vue projects?

  • @Albertmars32
    @Albertmars32 3 года назад

    How do i add a volume option to the player?

  • @heyyy4987
    @heyyy4987 3 года назад +1

    how put a volume control slider?

  • @chandanam645
    @chandanam645 2 года назад

    Hi i have tried with same code, but i have facing the error -> Failed to load resource: the server responded with a status of 404

  • @AswinHaridasOne_77
    @AswinHaridasOne_77 3 года назад +1

    Instead of pre defining all the songs we are going to use, how do we make it to play all songs we put it in the folder?

    • @protocode_227
      @protocode_227 2 года назад

      write a function with the Node.js fs.readdir() method

  • @denncriss3082
    @denncriss3082 4 года назад

    More content of vuejs please....

  • @faisalkhan678
    @faisalkhan678 4 года назад

    how to add mp3 files into asset folder .I am Unable to do so pls help

  • @ludkamotylikova3060
    @ludkamotylikova3060 3 года назад +1

    It looks a quite difficult for me to understand, its such a simple thing but when I watch how you build it it looks like wow, very complicated.

  • @abdulrahmanelzakzouk2768
    @abdulrahmanelzakzouk2768 4 года назад +1

    what is the theme you're using with vs code?

  • @heyyy4987
    @heyyy4987 4 года назад

    how insert album before?

  • @kirillbaryba746
    @kirillbaryba746 4 года назад +1

    It would be interesting to parse Vuex + JWT

    • @TylerPotts
      @TylerPotts  4 года назад +1

      Something I could look into

  • @00el04
    @00el04 3 года назад +1

    @15:13 I had to type 'this.player.muted = false;' for the music to autoplay

  • @iqbalibrahim4713
    @iqbalibrahim4713 4 года назад

    can I ask, I noticed that the eventListener is firing multiple times, or did I do something wrong with the code? because I copied everything exactly like how you did, I also use your code from github and it still happens

  • @timur_pikovets
    @timur_pikovets 7 месяцев назад

    For those who use Vite instead of Webpack, require() does not work in Vite. Write the path to your files as '/src/assets/...'. Hope this helps someone

  • @jonice4229
    @jonice4229 4 года назад +1

    hello, great tutorial, i am new to vue.js i wanted to learn it from 0 to a level where i can get a job, can you made a course paid on udemy about vue.js from scratch you have a unique of teaching skill.

    • @dudzpedra
      @dudzpedra 3 года назад

      you should really consider it! You have a way of teaching that is similar to mine and all the students usually love it! great job ;)

  • @abdi_pie7266
    @abdi_pie7266 3 года назад +1

    not bad

  • @kshitijzutshi
    @kshitijzutshi 4 года назад

    So, what if i want to play 100 songs? Do i import the title, artist and src for all of them? Any work around for this??

    • @TylerPotts
      @TylerPotts  4 года назад +3

      You could setup an admin system in node to add new songs and get this information via an API...

    • @kshitijzutshi
      @kshitijzutshi 4 года назад +2

      @@TylerPotts I was hoping to see an app like in the video thumbnail.

    • @TylerPotts
      @TylerPotts  4 года назад

      @@kshitijzutshi many people was, next time I'll stick to using an screenshot. Thought I'd make my thumbnails a little more nice looking but it has side effects 😅

    • @kshitijzutshi
      @kshitijzutshi 4 года назад +1

      @@TylerPotts Well understandable, but is it possible to design like that? If so you know how? Maybe a git repo u know of ?

    • @TylerPotts
      @TylerPotts  4 года назад +1

      @@kshitijzutshi I have made an app like that before I could always make a video on UI?

  • @MultiPerplexedDude
    @MultiPerplexedDude 4 года назад

    intro, rip headphone users

  • @danielherejk9660
    @danielherejk9660 2 года назад

    Hi man, ive got an error, require is not defined. what can I do with that please?

    • @TylerPotts
      @TylerPotts  2 года назад

      Sorry I'm not sure without looking into the code.

    • @danielherejk9660
      @danielherejk9660 Год назад

      @Aziz Mlayel shit, i have no clue, It's been year ago :D

    • @danielherejk9660
      @danielherejk9660 Год назад

      @Aziz Mlayel stackover will help I guess

  • @rajatsharma4476
    @rajatsharma4476 4 года назад

    Are u any way close to Mrs Potts, if true please tell her I love Iron Man 3000

  • @jjkelsey1180
    @jjkelsey1180 3 года назад

    Thanks for this amazing video!:D
    I followed it and learned a lot.
    Still have a problem with the script.

    Does anyone know how are 'song playing' and 'song' these two parameters working?

    • @juandavidgomezrestrepo6110
      @juandavidgomezrestrepo6110 3 года назад +1

      hi JJ Kelsey ? is the script working ? so in that script you are actually saying if (song.src === current.src){
      class=" playing song"}. else class="song"

    • @jjkelsey1180
      @jjkelsey1180 3 года назад

      juan david gomez restrepo Hi juan. Thank you so much for your reply! I got it.☺️

  • @kodamin6723
    @kodamin6723 4 года назад

    I'm glad NEFFEX was in there

  • @TheLuksas
    @TheLuksas 2 года назад

    how to learn of thinking like that... this is = this , then this is = this.... and so on....

  • @mcxundefined2974
    @mcxundefined2974 3 года назад

    i thought my right earphone was broken :D

    • @TylerPotts
      @TylerPotts  3 года назад

      My bad 😅 Messed up the audio...

  • @4tt4official7
    @4tt4official7 3 года назад

    Good stuff ,but fake thumbnail I think

  • @tajeddinealaoui445
    @tajeddinealaoui445 3 года назад +1

    Click bait image ^^

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 3 года назад +1

    awesome