Configuring Rails for Front-End Development

All the tools for Hotwire and our bundle are available as part of the options for a standard rails new command. I’ll talk about installing TypeScript in ​Adding TypeScript​ and React in Chapter 4, ​React​. We are not using not the default options for Rails, which I’ll talk about in Chapter 7, ​Bundling​.

For the project in this book, I started a new Rails project with this command (it’s a single line when you use it, but split here to fit on the page):

​ bundle exec rails new . -a propshaft -j esbuild
​  --database postgresql --skip-test --css tailwind

This gives us a standard Rails application with the following overrides:

  • We are using PostgreSQL as the database instead of the ...

Get Modern Front-End Development for Rails, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.