An example for react-sinatra

Usage

bundle install

bundle install

npm install

cd client && npm install

build javascripts

cd client && npm run build && npm run build-server

and copy from dist to public

cp dist/bundle.js ../public/

run sinatra

bundle exec ruby app.rb