Building a production-ready Rails 8 API + Vite/React/TanStack monorepo starter

📰 Dev.to · Juan Florville

Learn to build a production-ready Rails 8 API with Vite, React, and TanStack in a monorepo starter and improve your full-stack development skills

intermediate Published 6 May 2026
Action Steps
  1. Set up a new Rails 8 project using the command 'rails new myapp --api'
  2. Install Vite and React using 'npm install vite react react-dom' and 'npx vite init react myapp'
  3. Configure TanStack for state management by running 'npm install @tanstack/react-query'
  4. Create a new API endpoint in Rails using 'rails generate controller MyController'
  5. Integrate Vite and React with the Rails API using 'vite dev' and configuring the proxy
Who Needs to Know This

Full-stack developers and DevOps engineers can benefit from this tutorial to create efficient and scalable applications

Key Insight

💡 Using a monorepo starter with Rails, Vite, React, and TanStack can streamline full-stack development and improve application scalability

Share This
🚀 Build a production-ready Rails 8 API + Vite/React/TanStack monorepo starter and take your full-stack development to the next level! 💻
Read full article → ← Back to Reads