gem install rails
rails new APP_NAME --no-skip-hotwire -T -c tailwind -j esbuild -d postgresql -m https://raw.githubusercontent.com/alec-c4/ks-rails-tailwind/master/template.rb
Configure Appsignal with bundle exec appsignal install APPSIGNAL_KEY
Setup hypershield gem for PostgreSQL and create user for blazer gem
Configure sitemap generator in config/sitemap.rb
Configure application secrets with following template
active_record_encryption:
primary_key: ''
deterministic_key: ''
key_derivation_salt: ''
secret_key_base: ''
devise:
secret_key: ''
google:
client_id: ''
client_secret: ''
postmark:
api_key: ''
You can generate active record encryption keys with following command
bin/rails db:encryption:init
Configure application in config/settings.yml
Configure rack-attack using following guide
Add legal documents.
Update error pages in app/views/errors/*
with your content
Update config/database.yml
- just change configuration line for development from
development:
<<: *default
database: APP_NAME_development
to
development:
<<: *default
database: <%= ENV['CYPRESS'] ? 'APP_NAME_test' : 'APP_NAME_development' %>
Example configuration is available in config/database.yml.example