Quickly Add Devise And Bootstrap To Rails 6 With 1 Command Using A Rails Template | Week 8 - 20in20

Today we're going to quickly add Devise and Bootstrap to Rails 6 using 1 template command that you can find below. We'll also build this Rails 6 template ourselves so that if you want to extend it you can. All of the code is available on my GitHub repository for the 20in20 challenge.
The nice thing about using a Rails 6 template to add Devise and Bootstrap to Rails 6 is that if you host it remotely, you'll never need to download anything. You can just call the rails template command with the URL and it will grab it from there, assuming you're pointing to a raw file.
This command is based on the code available on my blog
deandehart.com/blog/rails-tem...
If you're interested in the rails command, you can run this command, URL included, to create the rails app yourself.
rails new blog_demo -m raw.githubusercontent.com/Dea...
github.com/Deanout/20in20/tre...
Timestamps
_______________
0:00 Video Overview & Intro
2:40 Template Overview
4:00 The One Command & What It Does
9:00 Adding Gems, Simple Form & Bundling In The Template
12:20 Adding Devise User Accounts With Username And Admins
33:40 Creating The Post Scaffold In The Template
35:35 Adding Bootstrap With The Template
43:00 Adding Bootstrap Navbar With The Template
50:40 Running Our Devise + Bootstrap Template
58:00 Video Summary & Outro
_______________
Photo by Pankaj Patel on Unsplash
Follow me on social media:
linktr.ee/deanin
Join this channel to get access to perks:
kzread.info/dron/RQv.html...
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
#Deanin #Rails6 #20in20

Пікірлер: 17

  • @Deanin
    @Deanin4 жыл бұрын

    This project contains a text version of the tutorial as well, that is available early on my website. You can read ahead here for free: deandehart.com/blog/rails-template-for-devise-and-bootstrap/ I hope you guys like this project, I tried to make this week a bit more unique again!

  • @Ashaka.E
    @Ashaka.E2 жыл бұрын

    Setting this up with Postgresql and TailwindCSS, great tutorial overall !!

  • @withrejkapermana6087
    @withrejkapermana60872 жыл бұрын

    This the one of best video I think. because, you teach me how to implement "DRY" stand for Dont Repeat Yourself. Its efficient thing on RubyOnRails. I like this one

  • @dum_travis8034
    @dum_travis80344 жыл бұрын

    great content as usual! really appreciate how thorough you are

  • @Deanin

    @Deanin

    4 жыл бұрын

    Thank you! Good to see you again! Glad to hear that the videos are hitting their mark haha. The hard part for me sometimes is deciding what to leave out, because I want to talk about it all.

  • @spritemoney
    @spritemoney4 жыл бұрын

    Wonderful video! It was worth the hour watching the video. I learned so much from this. This will save me a lot of time in the long term for creating templates to use with my Rails projects in the future. Creating templates is a very important concept in Software Engineering, and I am glad that you took the time to make this awesome tutorial. Thanks for putting your heart and soul into these videos. Thanks again! Because of you I am not bored during this quarantine season.

  • @Deanin

    @Deanin

    4 жыл бұрын

    Hey man, glad to hear you're staying busy! What's interesting is that polished templates can actually go for a decent price of you put enough work into them. So I think there might actually be a business model here that someone could tap into! Always nice seeing you on the channel, stay safe and healthy!

  • @gtrquest
    @gtrquest2 жыл бұрын

    17:12 "rails noise"

  • @DeepakKumar-jy7wo
    @DeepakKumar-jy7wo4 жыл бұрын

    It would be nice to see one video dissecting devise :)

  • @Deanin

    @Deanin

    4 жыл бұрын

    Absolutely! I'm thinking about doing an entire series on Devise because of the demand for it haha.

  • @rhmagalhaes
    @rhmagalhaes4 жыл бұрын

    I got an idea for you. Usually, date-time management in any language is a mess. I saw an app written in JS that manages the calendar very well, but my question is: why JS? Just because the real-time control? Can it be done with Ruby only? You create an appointment that can take several days or just a few hours and then you can click on the appointment on the calendar and move it to another day. That update it. Pretty interesting and JS controls it flawlessly. Unfortunately I don't have the link anymore. But I know it is a paid app the can be used as a gem, if I'm not mistaken. Good challenge :)

  • @Deanin

    @Deanin

    4 жыл бұрын

    This is an interesting one. I'll definitely look into it because it sounds like a good learning exercise! Thanks so much!

  • @aravindkumar8145
    @aravindkumar81454 жыл бұрын

    How to start from this video from scratch before the first minute ??

  • @Deanin

    @Deanin

    4 жыл бұрын

    Timestamps are in the video description, you could click those if you're having issues with the new player. Clicking 0:00 should still fix it.

  • @aravindkumar8145
    @aravindkumar81454 жыл бұрын

    What is active admin

  • @Deanin

    @Deanin

    4 жыл бұрын

    Active Admin is a gem that gives you an entire backend to use as an admin for your Rails site. You can check out a demo at demo.activeadmin.info/admin to see what it does for you. It has its pros and cons like everything, of course, but I'd definitely suggest trying it out in at least one Rails project. github.com/activeadmin/activeadmin is the GitHub for it.