There are a collection of application templates, scripts, and automatizations I use for everyday work. All included code is written with the following principles:
Feel free to submit any feature or pull request if you think that it may be useful for the community.
Create a new Rails application using the interactive installer:
# Interactive mode - select template from menu
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/alec-c4/kickstart/master/install.sh)" -- myapp
# Specify template directly
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/alec-c4/kickstart/master/install.sh)" -- myapp esbuild_tailwind
The installer will:
Modern Rails application with ESBuild bundling and Tailwind CSS.
Frontend:
Backend:
Development:
Deployment:
Rails application with Import Maps and Tailwind CSS.
Frontend:
Backend & Deployment:
Rails API-only application for backend services.
Backend:
Development:
Deployment:
# ESBuild + Tailwind template
rails new myapp -m https://raw.githubusercontent.com/alec-c4/kickstart/master/esbuild_tailwind.rb --no-rc --skip-test --skip-system-test --database=postgresql --devcontainer --css=tailwind --javascript=esbuild
# Importmap + Tailwind template
rails new myapp -m https://raw.githubusercontent.com/alec-c4/kickstart/master/importmap_tailwind.rb --no-rc --skip-test --skip-system-test --database=postgresql --devcontainer --css=tailwind
# API template
rails new myapp -m https://raw.githubusercontent.com/alec-c4/kickstart/master/api.rb --no-rc --skip-test --skip-system-test --database=postgresql --devcontainer --api
cd myapp
bundle install
yarn install # for esbuild_tailwind only
rails db:create db:migrate
rails parallel:create # Creates parallel test databases (ignore 'already exists' message)
bin/dev # or rails server
The esbuild_tailwind and importmap_tailwind templates include custom error pages styled with Tailwind CSS for:
Testing in Development:
By default, Rails shows detailed error pages in development. To test custom error pages locally:
# Enable custom error pages
rails dev:errors
# Restart your server
bin/dev
# Disable custom error pages (back to default)
rails dev:errors
Add new templates
Not found
Previous versions of kickstart templates can be found here due to complete project rewrite with master repo reboot.
For bug fixes, documentation changes, and features:
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)For larger new features: Do everything as above, but first also make contact with the project maintainers to be sure your change fits with the project direction and you won't be wasting effort going in the wrong direction.