Skip to Main Content
Modern Front-End Development for Rails, 2nd Edition
book

Modern Front-End Development for Rails, 2nd Edition

by Noel Rappin
September 2022
Intermediate to advanced content levelIntermediate to advanced
410 pages
10h 7m
English
Pragmatic Bookshelf
Content preview from Modern Front-End Development for Rails, 2nd Edition

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 default SQLite.

  • We are ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Front-End Development for Rails

Modern Front-End Development for Rails

Noel Rappin

Publisher Resources

ISBN: 9781680509977Errata Page