TravCo Rails

Public
My current Rails 8 plain vanilla app starting point
Icons/chart bar
Used 6 times
Created by
T Travis Erard

Usage
I typically run this with:
`rails new [app-name] --css=tailwind --skip-bootsnap --skip-jbuilder -m https://railsbytes.com/script/zJosWg`

It uses the builtin Rails authentication stuff. For a similar, but more complete approach, you could use https://github.com/lazaronixon/authentication-zero for authentication.

Going forward, I'll add more to the template to give AI tools (like CodeBuff) a good starting point.

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/zJosWg"
Template Source

Review the code before running this template on your machine.

gem_group :development do
  gem "standard", ">= 1.35.1"
  gem "htmlbeautifier"
  gem "erb-formatter"
end

gem_group :development, :test do
  gem "rspec-rails"
  gem "erb_lint", require: false
  gem "factory_bot_rails"
  gem "pry"
end

run "bundle install"

generate("rspec:install")

# use `file` to create specs?
file "spec/models/user_spec.rb", <<-CODE
  # spec code here
CODE

run "rm -rf test" # if yes?("Do you want to remove the /test directory?")

generate(:authentication)

rails_command("db:migrate")

after_bundle do
  git :init
  git add: "."
  git commit: %( -m "Initial commit" )
end
Comments

Sign up or Login to leave a comment.