If you've freshly cloned the repo:
rails db:create db:migrate
Then always:
bundle install
yarn install
rails s
will start
rails
andrails-react
./bin/webpack-dev-server
to enable hot-reloading for JS files (i.e. React)
This repo uses React and Rails with a static controller that is routed to by a catchall. The static controller serves a page that will mount React to the dom, and where further non-api routes are handled client side.
The catchall has a lambda that excludes activeStorage paths so the catchall doesn't screw up GET
-ing stored stuff