Skip to content

fera2k/rails-vite-inertia-react

Repository files navigation

RVIR (Rails + ViteJS + InertiaJS + React) Template

This is a template of a Rails application setup to quickly an Rails App that uses InertiaJS and React, powered by ViteJS.

The React component's are based on Chakra-UI and UnoCSS.

Tests are set up with RSpec and Jest.

This project is coded in VSCode and has configs for linting with ESLint, Prettier and Rubocop.

Setup

  1. Before Cloning make sure you have this installed:
  • Ruby 3.2.0
  • Node 18.14.0

If you have asdf installed, you can run asdf install after you cloned the repo. (Make sure you have the node and ruby asdf plugins added)

  1. Clone Repo
  2. Install Ruby dependencies

bundle install

  1. Install Node dependencies

npm install

  1. Initialize Database

rails db:create & rails db:migrate & rails db:seed

  1. Start App in Dev mode

bin/dev

About

Template for RoR 7 + Vite + Inertia + React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published