There are a lot of starter templates for Rails apps, but I want one that is so minimal that I never have to delete anything to get started — only add to it. Most come with more than I need by default. To use, fork/clone this repository instead of rails new app
.
- Ruby 2.6.3
- Rails 6.0.1
- Node 12.13.0
- Tailwindcss ^1.1.3
- Vue ^2.6.10
Install all dependencies and create/migrate the database.
- Fork the repository
- Clone it to your local machine
cd
into the directorybundle
(installs all gems)yarn
(installs all packages)rails db:create && rails db:migrate
rails s
- Open new tab in Terminal and
bin/webpack-dev-server
You are mostly starting from scratch with these tools besides for the basic installation, so there are very few assumptions or defaults if any.
- To modify defaults, see tailwind.config.js file.
- To add custom styles I recommend creating organized files in app/javascript/css and importing the files into main.css.
- See Tailwind Docs (https://tailwindcss.com)
- I added a sample component "App" to show basic organization and process for adding a component.
- See Vue Docs (https://vuejs.org)
- A User model was initialized with defaults.
- Views were generated with no styling. There are some Tailwind Devise form ERB files online you can copy.
- See Devise Docs (https://github.com/plataformatec/devise)