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.