This application is a small bootstraped app to remove the burden of creating a Rails + React application.
This repo uses Rails 4 with
The generated code was bit modified to simplify things and activate live-reloading.
In order to have a live server to check out the end result, we've set-up this repository to be installable through this one-click button:
This comes in handy for multiple reasons:
git push heroku master, it automatically handles initialization, dependencies downloads, etc.
However, you can definitely decide to host it somewhere else if you'd like!
Note: Locally, we're using
sqlite. Heroku has no file persistence, so we're using
postgresql in production.
nodejs(Tested with node v6 and v7)
gem install foreman
bundle exec rake db:create
Run with hot reloading:
foreman start -f Procfile.hot
Run without hot reloading:
foreman start -f Procfile.static
This is a usual Rails app with a new
client/ folder which holds
webpack and React components.
Most of your code should simply fit in: