Skip to content

imthatcarlos/react-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails app w/ react front-end

Install

git clone git@github.com:imthatcarlos/react-rails.git
cd react-rails

Make sure to have rails 5 installed. You can use this guide

bundle install
bundle exec rake db:create db:migrate
rails server

React components are found within app/assets/javascripts/components

Rails is an MVC framework, so here is the flow:

routes.rb => root to IndexController, action 'show'

app/controllers/index_controller.rb => action 'show', render view 'show.html.erb'

app/views/index/show.html.erb => renders SampleComponent

About

Setup of a rails app with react front-end

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published