clement-avenel / rails-react-starter

Simple React & Rails starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodeQL Ruby on Rails CI

Rails React Starter Banner

Rails React Starter

It combines the power of the React JavaScript framework with the simplicity and robustness of the Rails web application framework. The project is set up with a Rails backend that serves a JSON API and a React frontend that consumes the API and manages the application's state.

Tech Stack

  • Ruby 3.1.2
  • Rails 7.0.4
  • React 18.2.0
  • TailwindCSS 3.2.4
  • Docker

Setup Rails

  • cd server
  • bundle install
  • rails db:create
  • rails db:migrate
  • rails db:seed

Setup React

  • cd client
  • npm install

Run Rails

  • cd server
  • rails s

Run React

  • cd client
  • npm start

Setup with docker

Assuming you have docker and docker-compose installed

  • docker-compose run server bin/rails db:create db:migrate db:seed

Run with docker

  • docker-compose up

About

Simple React & Rails starter

License:MIT License


Languages

Language:Ruby 67.8%Language:JavaScript 28.4%Language:HTML 2.2%Language:Dockerfile 1.0%Language:CSS 0.4%Language:Shell 0.2%