macklinu / rails-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rails-template

My preferred template for getting started with Rails

What's in the box?

Setup

First clone this repo to your local machine. Then run the following command

yes | rails new app_name -f -m /path/to/rails-template/template.rb -j esbuild -c tailwind -d postgresql

Explaning the arguments:

  • yes | - Answers yes when the bullet gem asks if Bullet should be installed during tests.
  • app_name - Replace with the app name / directory you want the Rails app to be placed in.
  • -f - Force any templates to be overridden (this prefers my Tailwind config over the Rails default config).
  • -m /path/to/rails-template/template.rb - use this Rails template
  • -j esbuild - Use esbuild to bundle JavaScript.
  • -c tailwind - Use Tailwind as the CSS framework.
  • -d postgresql - Use the PostgreSQL database.

About

License:MIT License


Languages

Language:Ruby 88.9%Language:JavaScript 11.1%