Skip to content

Minimal basic demonstration React-Rails sample application using Webpacker

License

Notifications You must be signed in to change notification settings

testa19/react-rails-example-app

 
 

Repository files navigation

React-Rails Demo Application

This repo is an example of a simple working Rails 7, Shakapacker 7, React-Rails 3 application.

Where generators are used, the git commit will be the command run to get to the current application state so it will hopefully be easy to follow along at home.

For migration to react_on_rails, please read the migration guide.

How to test the Demo Application

1) Install the JS packages:

yarn install # or npm install

2) Install GEM packages:

bundle install

3) In one terminal run the rails server:

rails s

4) In another terminal run the webpack server:

./bin/webpack-dev-server

5) Visit the welcome page

localhost:3000

Branches

This repo contains two trees, one Webpacker and one Sprockets.

Each branch illustrates a react-rails ability.

About

Minimal basic demonstration React-Rails sample application using Webpacker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 56.9%
  • JavaScript 26.3%
  • HTML 11.8%
  • CSS 1.7%
  • Dockerfile 1.7%
  • SCSS 1.2%
  • CoffeeScript 0.4%