Tailwind Templates
Themes
Components
Favorites
Blog
Paid
Updates
Submit
Rails_postgres_tailwind_template
Andacanaver
Ruby on Rails PostgreSQL Tailwindcss Template
Download
#My Ruby/Rails template
This template was created using the following command:
rails new 'name-of-app' --database=postgresql --css tailwind
tailwind may need to use the following command for different OSes: bundle lock --add-platform ['arm64-darwin', 'x64-mingw32', 'x86_64-darwin']
arm64-darwin is MacOS with M1 chip
x86_64-darwin is MacOS with intel chip
x64-mingw32 is Windows 64bit
Run the following command to install tailwindcss-rails gem rails tailwindcss:install
In Gemfile, I added the following gems: a. dotenv-rails b. font-awesome-rails c. rubocop
run command 'bundle install'
In the \config\application.rb file add in the following:
Dotenv::Railtie.load
HOSTNAME = ENV['HOSTNAME']
This will enable environment variables in development environment.
run the following commands: a. rails importmap:install b. rails turbo:install c. rails turbo:install:redis
this will allow the use of the turbo methods
5.
Top categories
tailwind
daisyui
resume
portfolio
email
blog
dashboard
landing-page
admin
ecommerce