Front-End Options
Explore how to integrate modern JavaScript front ends with Rails using Docker. Learn to set up Webpacker and React inside your Docker environment, configure separate front-end services, and update Dockerfiles for Node and Yarn support. Understand options for serving front ends directly from Rails or as stand-alone apps using Docker Compose.
JavaScript and Webpacker
We are living in a JavaScript renaissance—no longer is it the whipping boy of language purists. Rails has embraced modern JavaScript technologies like React through its inclusion of Webpacker, a gem that brings webpack support.
As Rails developers, it is important to be able to incorporate these technologies into our apps as needed, so our Docker environment needs to support us in that endeavor.
We will explore the options for working with JavaScript as part of our Rails development. We will also see how to include a React front-end in our ...