jemiller1963 / rails-vite-tailwindcss-template

Create a Ruby on Rails App using VueJS/ReactJS or Clean project with ViteJS, it is good to start a project. You can choose between Tailwind CSS, Bootstrap, or Bulma.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a rails template with VueJS and ViteJS as roll up. Also you can choose between CSS Frameworks as: Tailwind CSS, Bootstrap, or Bulma.

This is the best option to start a project with Rails 7 + Vite. You can make a fast project and start working on it without any problem. Now you can choose between Tailwind CSS, Bootstrap or Bulma.

Now you have the option to start de project with React JS (18), with the preference of choosing different CSS Frameworks.

This template starts with Active Storage by default when you create it. If you don't want, just remove it.

JS Frameworks

  • To start a project without Vue or React just add the flag --normal to command line.
  • VueJS 3 to start a project with Vue just add the flag --vue to command line.
  • ReactJS 18 to start a project with Vue just add the flag --react to command line.

CSS Frameworks

Rails Tailwind CSS Template

Installation

I use the flags --skip-webpack-install --skip-javascript to prevent installing webpack or esBuild to avoid conflicts with ViteJS⚡️.

Rails 7 + ViteJS + Tailwind CSS

From GitHub without Vue or React
rails new my_app --skip-webpack-install --skip-javascript -d <database_you_want> -m https://raw.githubusercontent.com/IsraelDCastro/rails-vite-tailwindcss-template/master/template.rb --normal
Making a git clone of the project without Vue or React
rails new my_app --skip-webpack-install --skip-javascript -d <database_you_want> -m template.rb --normal

Rails 7 + Vue 3 + ViteJS + Tailwind CSS

From GitHub with vue
rails new my_app --skip-webpack-install --skip-javascript -d <database_you_want> -m https://raw.githubusercontent.com/IsraelDCastro/rails-vite-tailwindcss-template/master/template.rb --vue
Making a git clone of the project with vue
rails new my_app --skip-webpack-install --skip-javascript -d <database_you_want> -m template.rb --vue

Rails 7 + ReactJS 18 + ViteJS + Tailwind CSS

From GitHub with react
rails new my_app --skip-webpack-install --skip-javascript -d <database_you_want> -m https://raw.githubusercontent.com/IsraelDCastro/rails-vite-tailwindcss-template/master/template.rb --react
Making a git clone of the project with react
rails new my_app --skip-webpack-install --skip-javascript -d <database_you_want> -m template.rb --react

Just be sure to be inside the project when you run the command, from outside be sure to put the correct file direction.

Default dependencies

  • autoprefixer
  • postcss
  • sass
  • tailwindcss
  • vite
  • vue (Only with flag --vue)
  • react (Only with flag --react)
  • react-dom (Only with flag --react)

Default dev dependencies

  • @vitejs/plugin-vue (Only with flag --vue)
  • @vue/compiler-sfc (Only with flag --vue)
  • eslint
  • eslint-plugin-tailwindcss (Only the template with Tailwind CSS has this package).
  • eslint-plugin-vue (Only with flag --vue)
  • path
  • prettier
  • eslint-plugin-prettier
  • eslint-config-prettier
  • vite-plugin-full-reload
  • vite-plugin-ruby
  • @vitejs/plugin-react-refresh (Only with flag --react)
  • eslint-plugin-react (Only with flag --react)

Default gems

  • gem "vite_rails"
  • gem "vite_ruby"
  • gem "image_processing", "~> 1.2"
  • gem "annotate", group: :development

Thank you ⭐️

If you have any questions, just make an issue, I'll answer you as soon as possible.

About

Create a Ruby on Rails App using VueJS/ReactJS or Clean project with ViteJS, it is good to start a project. You can choose between Tailwind CSS, Bootstrap, or Bulma.


Languages

Language:Ruby 54.7%Language:HTML 30.1%Language:SCSS 8.2%Language:JavaScript 3.6%Language:TypeScript 2.2%Language:CSS 0.7%Language:Vue 0.5%