Blank Rails 6.0.2 example application that integrates Rails and Bootstrap 4.0 via Webpacker. Bundled with High Voltage also for easy static page generation and Bootswatch for flexible look and feel.
Ruby on Rails, or Rails, is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller framework, providing default structures for a database, a web service, and web pages. View the Getting Started with Rails page for more information.
Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. It contains CSS- and JavaScript-based design templates for typography, forms, buttons, navigation, and other interface components. View the Introduction to Bootstrap for more information
This application can be used as a starting position to quickly create new Rails applications which come with bootstrap.
- Fork this repository OR alternatively duplicate it
- Clone your repo:
git clone https://github.com/YOUR-USER/rails6-bootstrap4
- Setup the application
bundle exec bundle install
yarn install
bin/rails db:create
bin/webpack-dev-server
bin/rails server
Once complete, point your browser to http://localhost:3000 to view the application.
Its possible to swap look and feel by replacing the theme name in /app/javascript/stylesheets/application.scss
.
Visit Bootswatch for possible theme names.
Bootstrap 4 was enabled via the following steps.
After checking out the repo and running over the installation steps, you can run rails test
to run the tests via the web container.
You can also run bin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/johnmfarrell1/rails6-bootstrap4
The project is available as open source under the terms of the MIT License.