This creates a Ruby on Rails project using Astro for views.
First, follow the Rails installation guide to ensure you have compatible versions of Ruby and Rails installed.
Once Ruby is set up, install packages / gems:
bundle installNext, install JavaScript dependencies using the pnpm command:
pnpm installFinally, create the database:
bin/rails db:prepareRun pnpm dev in your terminal. This will start the Astro dev server at http://localhost:4321, and a Ruby on Rails server in the background. Be sure to open http://localhost:4321 and not the Rails server.