Enter your email below to watch this video
Deploy apps to servers that you own and control.
Application monitoring that helps developers get it done.
It’s time to start building our Rails app.
Before we begin, you’ll need to have Ruby on Rails installed on your system. I won’t be walking through the installation process, but I’ve included links below with detailed guides for different environments and operating systems.
Once you have Ruby on Rails installed, starting a new Rails application is incredibly simple. We use the rails new command to generate our app.
Let’s move over to the terminal and run the command:
rails new lorem-news --database=sqlite3 --css=tailwind --javascript=esbuild
This creates a new app called Lorem News, a basic Hacker News clone, and specifies three key options:
By default, Rails does not require a JavaScript bundler—it allows you to use import maps instead. However, I prefer using ESBuild because it’s lightweight, fast, and flexible while giving me more control over asset management.
Running the rails new command triggers Rails to:
This process follows Rails’ philosophy of “convention over configuration.”
Instead of manually setting up file structures, configurations, and dependencies, Rails automates everything, ensuring that your app is ready for development and even production right away.
After everything is set up, we navigate into our new directory:
cd lorem-news
Next, let’s open the project in our code editor and explore the key files and directories:
One of the most powerful aspects of Rails 8 is that it ships with everything you need for production—right from the initial rails new command.
Even though our app currently has no functionality, it is already fully deployable with built-in support for SQLite’s operational simplicity.
In the next few videos, we’ll break down:
Let’s dive in! 🚀