Opinionated Rails 7 starter template using esbuild, tailwindcss, postgresql and hotwired tested with RSpec
The Rails Starter Template is an opinionated Rails setup that utilizes Rails 7, PostgreSQL, TailwindCSS, Stimulus, Hotwire, and RSpec. It includes a Node-based setup for bundling JavaScript and CSS with jsbundling-rails and cssbundling-rails. There is also an option to use Propshaft as the asset pipeline instead of Sprockets. The template requires several dependencies to be installed, including Ruby, Node, Bundler, Yarn, Overmind, PostgreSQL, Redis, and optionally Docker.
asdf install rubyasdf install nodegem install bundlerbrew install yarnbrew install tmux overmindbrew install postgresql and brew services start postgresqlbrew install redis and brew services start redisbrew bundle
standardrb --fix
standardjs --fix
rspec
Alternatively, individual spec files can be run using the RSpec command.
Inside the docker container, there are two different commands to run unit tests and system specs respectively.
The Rails Starter Template is a preconfigured Rails setup that includes popular frameworks and libraries such as TailwindCSS, Stimulus, and RSpec. It offers the option to use either Propshaft or Sprockets for asset bundling and includes guidelines for code formatting using StandardRB for Ruby and StandardJS for JavaScript. The template requires several dependencies to be installed and provides a setup script for easy installation and configuration. Additionally, Docker and the dip CLI tool can be used for a dockerized development environment.