Installing Tailwind
Learn how to install Tailwind in Ruby on Rails and React.
We'll cover the following...
Sample code
To run the sample application, we need to download the code below.
For the Rails version
, which is in the main directory, we need to have Ruby 3.0 and SQLite installed on our system. Running bin/setup
in the sample code directory will load the Rails specific parts. Next, the rails server will load the application itself, and we should be able to access the site at http://localhost:3000
. The samples are located at http://localhost:3000/intro, http://localhost:3000/box
, and http://local- host:3000/page
.
For the React version, which is in the react_create_app
directory, we need to have npm
and yarn
installed. With those in place, yarn install
will install all the needed modules, and yarn start
will start the development server. All the samples can be accessed from http://localhost:3000
, and we can see the basic HTML inside the ...