Code Monkey home page Code Monkey logo

bootstrap5rails's Introduction

README

Rails 7, Bootstrap 5 tutorial https://www.bootrails.com/blog/rails-7-bootstrap-5-tutorial/

Rails 7 has a very opinionated way to handle the front-end assets. Let's see how it works for Bootstrap 5.

A big warning

At BootrAils, we are very excited that Rails 7 is out since mid-december, 2021. The frontend assets management is once again completely different. Rails 6 almost dropped Sprockets in favor of Webpack - see this article, now Rails 7 almost dropped Webpack in favor of jsbundling-rails (with esbuild) + import maps + Sprockets.

So we, as Rails developers, have choices. For this tutorial, we will use the default Rails 7 options - but we are not sure you should. That's the fear. Relief will be for the end of the article.

If you want a full setup of Bootstrap 5 with Webpacker, see that other article.

Prerequisites

  • Ruby version 3 or greater
    recommended: 3.0.4
    I used: 3.1.2

  • Bundler version 2.2 or greater
    recommended: 2.2.11
    I used: 2.3.17

  • NPM version 7.1 or greater
    recommended: 8.3.0
    I used: 8.11.0

  • Yarn version
    recommended: 1.22.0
    I used: 1.22.19

  • PostgreSQL version 12 or 13
    recommended: 13.1
    I used: 12.9

bootstrap5rails's People

Contributors

georgy5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.