Skip to content
프로젝트

소개

Inertia Rails React Starter Kit

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • Inertia Rails & Vite Rails setup
  • React frontend with TypeScript & shadcn/ui component library
  • User authentication system (based on Authentication Zero)
  • Kamal for deployment

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Inertia Rails React Starter Kit

A modern full-stack starter application with Rails backend and React frontend using Inertia.js based on the Laravel Starter Kit.

About this repo

This starter kit is generated output of inertia-rails/generator: each generator release regenerates the app and opens an automated sync PR here, so most files in this repo are overwritten on every sync. To contribute changes to the app itself, open a PR against the generator — only this README and the deploy workflow are kit-owned.

Prefer different options (framework, JavaScript instead of TypeScript, feature set)? Generate your own app:

rails new myapp -m https://raw.githubusercontent.com/inertia-rails/generator/dist/template.rb

Features

See also:

Built by Evil Martians

Setup

  1. Clone this repository
  2. Setup dependencies & run the server:
    bin/setup
    
  3. Open http://localhost:3000

Enabling SSR

This starter kit ships SSR-ready but turned off. The Puma plugin (plugin :inertia_ssr) manages the Node.js renderer in-process — no separate accessory required.

To turn SSR on, flip two switches:

  1. Set config.ssr_enabled = true in config/initializers/inertia_rails.rb.

  2. Build the image with SSR_ENABLED=true so the SSR bundle ships alongside the app. Two ways:

    With Kamal — add to config/deploy.yml:

    builder:
      args:
        SSR_ENABLED: true
    

    By hand — pass the build arg directly:

    docker build --build-arg SSR_ENABLED=true -t react_starter_kit .
    

That's it. Puma boots the SSR process automatically when ssr_enabled is true, and Inertia falls back to client-side rendering if it ever fails (see config.on_ssr_error).

In development, flipping ssr_enabled is enough — Vite serves SSR via its own dev endpoint with HMR. The Docker build arg only matters for production images.

License

The project is available as open source under the terms of the MIT License.

관련 프로젝트 살펴보기

불러오는 중…