How to Install Bootstrap with NPM (Best Way)

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • 👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). I'll help you master the latest tech here:
    👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    👉 Professional JavaScript Course: bytegrad.com/courses/professi...
    👉 Professional CSS Course: bytegrad.com/courses/professi...
    👉 Discord: all my courses have a private Discord where I actively participate
    🔔 Email newsletter (BIG update soon): email.bytegrad.com
    0:00 Setup with NPM
    2:19 Install Bootstrap with NPM
    3:55 Looking at Bootstrap code
    5:12 Including Bootstrap in project HTML
    7:57 Compiling Sass / SCSS to CSS
    10:48 Including Bootstrap JS
    11:57 Overriding primary color
    12:12 Remove source map and output window
    14:19 Going to production
    #webdevelopment #coding #programming
  • НаукаНаука

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

  • @stevemesser4842
    @stevemesser4842 7 месяцев назад +5

    Absolutely the best Bootstrap / NPM tutorial I've seen!!

  • @ardenyy
    @ardenyy Год назад +4

    this is extremely clear and provide lots of code explanation. exactly what i need. much appreciated.

  • @JuanManuelLinaresBloggerDeNiro
    @JuanManuelLinaresBloggerDeNiro Год назад +2

    Clear and straight to the point. Thanks a lot!

  • @Jento.
    @Jento. 4 месяца назад +1

    Lots of useful information for those that aren't familiar with both bootstrap and vsc, thank you for this. I know understand the process behind it better.

  • @leespilsbury3621
    @leespilsbury3621 4 месяца назад +1

    Nice video mate, simple and easy to follow

  • @bixgomez2839
    @bixgomez2839 Год назад +2

    Thanks a lot, this was really helpful! Very straightforward, as others have noted.

  • @roving-camera_72
    @roving-camera_72 Год назад +4

    Super helpful. I thought it would be difficult to edit default Sass in Bootstrap but this tutorial shows how easy it is. Thanks very much.

  • @timsqsqssqq
    @timsqsqssqq 9 месяцев назад +2

    thanks a lot your voice is really calming when you explain something. Thanks a lot and i will buy your courses!

  • @stefanhammer3821
    @stefanhammer3821 Год назад +1

    Absoultely awsome! Thank you for this tutorial! Helped me out alot : D

  • @Wsiol
    @Wsiol 7 месяцев назад +1

    Top man! Concise structured content. Thank you for your time, this movie helped me a lot!

  • @thesazanov1
    @thesazanov1 Год назад +1

    Great job dude! Nice lesson!

  • @zero67187
    @zero67187 Год назад +1

    Thank you so much! Very straightforward tutorial

  • @nitesh1292
    @nitesh1292 2 месяца назад +1

    Thank you very much For making this informative video

  • @bilalahmedkhan5876
    @bilalahmedkhan5876 Год назад +1

    Dude thank you SO MUCH for this!

  • @PrivacyEnjoyer
    @PrivacyEnjoyer Год назад +2

    Bro, you helped me a lot! Thank you so much!

  • @pablocortes9102
    @pablocortes9102 Год назад +1

    Man, you are amazing, thanks a bunch for this video.

  • @lespalmer910
    @lespalmer910 2 месяца назад +1

    Excellent tutorial, now I have a better understanding of using Bootstrap5, thank you for taking time for uploading an excellent Bootstrap 5 tutorial.

  • @DanClapp
    @DanClapp Год назад +1

    Bro I would have never been able to figure this out on my own, thank you!

  • @MatissR-bp6cp
    @MatissR-bp6cp 3 месяца назад +1

    Thank you very much, you really know how to explain it

  • @CephalonShohan
    @CephalonShohan Год назад +3

    At first i was wondering why this is 16mins long. but after seeing the video I can say that this covers topic that are quite important specially for newcomers. i found it quite helpful.

  • @navyadvancement
    @navyadvancement Год назад +1

    Awesome video, thank you kindly!

  • @JoaoPedro-dr4vo
    @JoaoPedro-dr4vo 8 месяцев назад +1

    Thank you for the video! Very helpful

  • @jenglish1986
    @jenglish1986 5 месяцев назад +1

    Very concise I like the examples you threw in to test the links

  • @draigan
    @draigan Год назад +7

    bro this was super freaking helpful. I tried using the stupid npm template repo on the frontpage of the bootstrap site. Turns out its for version 4?? So I was trying to get shit to work and it just wasnt working. Wasted half a day on that garbage. I dunno why there isn't more straight forward directions on setting up a bootstrap environment. You're a good teacher man thank you! Subscribed. Oh and also the thing about the carousel example not working off the bat, from your other video, that saved me some hassle. thanks for that too.

    • @PrivacyEnjoyer
      @PrivacyEnjoyer Год назад +1

      I feel your pain dude...

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

      YES! I just went through the same nightmare. Right in the 5.2 docs, there is a link to that antiquated repo! I too spent too long trying to get that nonsense to work. Bootstrap needs to hire this guy to write their documentation!

  • @januarfe
    @januarfe 27 дней назад +1

    this is what i need, thanks

  • @danielbrainich7317
    @danielbrainich7317 8 месяцев назад +1

    very helpful and easy to follow video!

  • @wealthgenerationstrategies
    @wealthgenerationstrategies 2 месяца назад +1

    Excellent tutorial for sure. I was able to take what was illustrated here and translate to using it with JetBrains WebStorm app. Thanks!

  • @captain_finn
    @captain_finn 10 месяцев назад +2

    He mentions this earlier, but I thought I'd share: It's a good idea to notate during this video that the sass compiler is "watching". I came back to this video a day later to finish up this exercise and didn't have my sass compiler running. When I hit save after commenting out $primary: red; that change did not go into effect until I hit "watch sass" and saved the file again.
    Awesome video by the way, I feel like bootstrap is more simplified and not as intimidating anymore.

  • @joeri29
    @joeri29 5 месяцев назад +1

    thank you, bedankt😁😁 !!

  • @wogalwogal
    @wogalwogal Год назад +1

    Hi Good Morning - Thank you Very Much For Taking The Time To Do These Awesome Video's . I Apricate It Thank You

  • @lucam.2968
    @lucam.2968 5 месяцев назад +1

    Thanks that was great explanation --really helpfull

  • @ism6938
    @ism6938 10 месяцев назад +1

    Easy to follow!

  • @666tradash999
    @666tradash999 Год назад +1

    deserves more viewer, helped me alot, thanks

  • @rodrigodesanmiguel8481
    @rodrigodesanmiguel8481 Год назад +1

    thanks a lot man, i like your content :)

  • @michalsvata
    @michalsvata 6 месяцев назад +1

    Awesome video ;)

  • @bubostudio
    @bubostudio 9 месяцев назад +1

    Very good thank you.

  • @Miltonhn
    @Miltonhn 5 месяцев назад +1

    Magistral 👏🏼 I spent this time watching a video with so much value well done

  • @DK-ez5dg
    @DK-ez5dg 9 месяцев назад +1

    Very helpfull thx.

  • @opponion2821
    @opponion2821 Год назад +1

    best video about how to use bootstrap with npm, thank you very much

  • @user-vz8ku4sg5j
    @user-vz8ku4sg5j Год назад +1

    Thank you very much!

  • @zyrogaming2033
    @zyrogaming2033 Год назад +1

    Thank you very much bro i learned it from
    scratch

  • @moeiei
    @moeiei 9 месяцев назад +1

    Thank you so much! 😭

  • @moh3n_deniku
    @moh3n_deniku Год назад +1

    Thanks it was very helpful

  • @secret_ufo
    @secret_ufo 9 месяцев назад +1

    thanks, very helpful

  • @user-sy7lm6lw8i
    @user-sy7lm6lw8i Год назад +1

    thank you!!

  • @mhbutfprtsi
    @mhbutfprtsi 8 месяцев назад +1

    thanks! 👽✌

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

    You look like IntoTheMix

  • @sander3236
    @sander3236 Год назад +1

    good video!!!

  • @xb_diandra301
    @xb_diandra301 Год назад +1

    Thanks bro

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

    Pero que buen video, definitivamente en ingles esta la información top

  • @tyo9522
    @tyo9522 Год назад +1

    thanks

  • @tonhonpa
    @tonhonpa 4 месяца назад +1

    great

  • @groovebird812
    @groovebird812 4 месяца назад

    Very clear and good explained. Your theme of VS Code looks good. What is the name of this theme?

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

    @bytegrad Is there no way to use the CDN to change the color, or is this just your preferred way? My company is just starting to work with Bootstrap 5 and we use the CDN.

  • @upcoder
    @upcoder 7 месяцев назад +1

    Hi! what about font-awesome or slick slider? the cdn will be best for it? Thank you!

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

    Thanks 😭

  • @Weston_Guidero
    @Weston_Guidero 8 месяцев назад

    Do you have to install bootstrap in the terminal for every project/workspace folder? Or... Better to ask how to do i get the node modules and package.json in a new project folder? I have already used it in a different one prior. Whats the process of adding bootstrap to a new project each time?

  • @casadodevjunior1939
    @casadodevjunior1939 9 месяцев назад +1

    I liked how clear the tutorial is, but I think its kinda annoying to make my company's code have an extension dependency. I still think that parcel approach is more reasonable in these cases where you have a team

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

    I need some help is it possible to do something like @import /node_modules/bootstrap/scss/bootstrap.scss or this not a thing? I keep getting errors. Can I only import from within the folder where the main.scss is?

  • @Tapeholder
    @Tapeholder 2 месяца назад

    I can only comply it when the main.scssis empty and it won't work when there is anything in it.

  • @Jento.
    @Jento. 4 месяца назад

    Not compiling? Try to just delete the dots in the beginning , you must write:
    @import "node_modules/bootstrap/scss/bootstrap";
    in your main.scss file

  • @omaralia1914
    @omaralia1914 8 месяцев назад

    how to support bootstrap rtl v5 please

  • @humaidahmedabuzinjal6257
    @humaidahmedabuzinjal6257 Год назад +1

    what fonts and theme are you using?

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

      It’s the Monokai Pro theme

  • @clockwise9179
    @clockwise9179 Год назад +2

    informative and helpful video however for something minimal like this you could shorten the video down to 10min or 5min its really more accessible for a lot of people :( 16mins just to picking up tutorial on how to install a css framework is really not the kind of video yt algorithim likes

  • @namratadesai774
    @namratadesai774 Год назад +1

    do we have to install bootstrap through npm for every new project?please help?

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

    Which theme is he using?

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

    I've followed the example but images are not loading I've included them in a sub directory img/
    In vscode I can see a miniature version of the image on the left-hand side, so the src is correct.
    any idea how to resolve this issue?
    Best regards
    Elvy

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

      Hi, sorry I’m super busy so can’t give you a good answer. I highly recommend going through my Professional JS course (and CSS course) and these things become easy

    • @elvykamunyokomanunebo1441
      @elvykamunyokomanunebo1441 Год назад +1

      @@ByteGrad I am also very busy so I'll just have to find an alternative.
      Thanks for taking the time to respond to me.
      :)

  • @OneBrokeBloke
    @OneBrokeBloke Год назад +1

    Dont know why, but linking the JS does not work for me, navbar wont open with this:

    • @jamesmichaelsimmons
      @jamesmichaelsimmons 6 месяцев назад

      Maybe you need to go up a directory first. Have you tried adding ../ in front of what you wrote

  • @asadabbas505
    @asadabbas505 6 месяцев назад

    My javaScript file not link . i was done step by step

  • @bintangnaufal
    @bintangnaufal Год назад +1

    SAVIOR

  • @user-rk8tg7hk6x
    @user-rk8tg7hk6x Год назад

    The internet is littered with “how to’s” published by instructors who know their subject but overlook the obvious; they are teaching “don’t know’s” and these instructors often forget vital instructions that are obvious to the ignorant.
    Let me explain, look at 1:40:
    npm init -y
    Where do you type this? In the root directory of your project, in the directory where you will use bootstrap, or some other directory?
    So Is blunder on and find I’ve done it wrong because the instruction was given by someone who knew what he was doing and assumed we did….

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

      watch the seconds before 1:40 he literally shows you where to typethat

  • @SuryaS-ux9fy
    @SuryaS-ux9fy 10 месяцев назад

    Tq ra punda