Project with devise, user model (email, admin:boolean) and bootstrap preconfigured but also prepared according to BEM CSS methodology.
rails new \
--skip-test \
--database postgresql \
-a propshaft \
-m https://raw.githubusercontent.com/sschuez/rails-template/main/template_bootstrap.rb \
CHANGE_THIS_TO_YOUR_RAILS_APP_NAME- devise (Authetication)
- pundit (Authorisation)
- rspec-rails
- cucumber
- database_cleaner
- dartsass-rails for stylesheets (with Bootstrap)
- simple_form (preconfigured with Bootstrap)
Very simple navbar, with a sidebar, a footer and flash notification ready for hotwire. Fontawesome, as well as bootstrap is configured for icons, renderd via an Icon model. The whole css is done via dartsass-rails. Structure to organise the sass-stylesheets under your assets follow BEM convetion:
- components
- config
- layouts
- mixins
- utilities
The Javascript is handled via importmaps.
The template will run db:create db:migrate and the it will run yarn build:css. So running bin/dev should be enough for you to get going. A .gitignore setup is also provided.
Project with devise, user model (email, admin:boolean) preconfigrued with BEM CSS.
rails new \
--skip-test \
--database postgresql \
-a propshaft \
-m https://raw.githubusercontent.com/sschuez/rails-template/main/template_bem.rb \
CHANGE_THIS_TO_YOUR_RAILS_APP_NAME- devise (Authetication)
- pundit (Authorisation)
- rspec-rails
- cucumber
- database_cleaner
- dartsass-rails for stylesheets (with BEM structure)
- simple_form (preconfigured with custom styling)
Very simple navbar, a footer and flash notification ready for hotwire. Fontawesome is configured for icons. The whole css is done via dartsass-rails. Structure to organise the sass-stylesheets under your assets follow BEM convetion:
- components
- config
- layouts
- mixins
- utilities
The Javascript is handled via importmaps.
The template will run db:create db:migrate and the it will run yarn build:css. So running bin/dev should be enough for you to get going. A .gitignore setup is also provided.
Project with devise, user model (email, admin:boolean) and bootstrap preconfigured.
rails new \
--skip-test \
--database postgresql \
-m https://raw.githubusercontent.com/sschuez/rails-template/main/template.rb \
CHANGE_THIS_TO_YOUR_RAILS_APP_NAME- devise (Authetication)
- pundit (Authorisation)
- rspec-rails
- cucumber
- database_cleaner
- dartsass-rails for stylesheets (with Bootstrap)
- simple_form (preconfigured with Bootstrap)
I added a navbar, a footer and some alerts. Fontawesome, as well as bootstrap is configured for icons. The whole css is done via dartsass-rails. I have created a structure to organise the sass-stylesheets under your assets:
- components
- pages
- config (for your fonts and global variables)
I implemented a basic dark mode functionality, with a shared/dark_mode button preconfigured in the navbar. CSS class is stored in cookies via stimulus controller.
The Javascript is handled via importmaps, the default in of Rails 7.
The template will run db:create db:migrate and the it will run yarn build:css. So running bin/dev should be enough for you to get going. A .gitignore setup is also provided.