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:
# 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
# Minimal template
rails new myapp -m https://raw.githubusercontent.com/alec-c4/kickstart/master/minimal.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
bin/dev # or rails server
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.