Before cloning the app, ensure that you have the latest Ruby release. This app uses Ruby version 2.7.0
.
If you have rvm
, run rvm list
to see all of the installed Ruby versions on your computer.
If you don't see 2.7.0.
in the list, run the command rvm install 2.7.0
.
After a short while, the lastest version will be installed. Run rvm list
to confirm it is there.
You'll need to switch over to it by running rvm use 2.7.0
or rvm --default use 2.7.0
if you want to make it the default version.
In your terminal, run git clone https://github.com/storrence88/tailwindcss.git
to download the repo.
cd
into the tailwindcss
directory.
Run bundle
to install the gems. (This could take a few mins...)
Next, run yarn
because why not?
Next, run rails db:setup
, which behind the scenes will run rails db:create
, rails db:schema:load
, and rails db:seed
all in one command! Check this out for more info on rake commands.
If you are getting an extensions are not built...yada, yada, yada
warning that won't let you run the above command, try running gem pristine --all
. This happens sometimes because of the new version of Ruby we installed. All of the executable commands are still pointing to the old Ruby version so we need to redirect them. Once the gems are pristine, run rails db:setup
once more.
You may or may not see a BUNCH or warnings, don't worry about them. Side effects of using the latest Ruby version 😅...
You're almost there! 🙌 Now run rails s
to start the rails server and open a new tab and go to localhost:3000
Boom.