This app is a starter template that I use for most of my example apps that I build for my Youtube and Rapid Ruby episodes.
- Rails 7
- Hotwire using esbuild
- Tailwind CSS
- User authentication with authentication-zero
- ViewComponent
- RSpec
The below is customised to my workflow, you may want to skip/tweak a few of the steps. Requires brew install gh
to create the new repository.
# Setup commands
cd ~/Sites/youtube
git clone git@github.com:phawk/rapid-ruby-starter.git new_project_name
cd new_project_name
code .
bundle install
yarn install
git remote rm origin
gh repo create new_project_name --public --source=.
git push origin main -u
bin/rails db:create
bin/rails db:migrate && bin/rails db:migrate RAILS_ENV=test
# Create your user account interactively
bin/rails admin:create_user
# Run the server
bin/dev