This repo is an example of a simple working Rails 5, Webpack(er)3, React-Rails 2.3+ application.
Where generators are used, the git commit will be the command ran to get to the current application state so it will hopefully be easy to follow along at home.
How to test the Demo Application 1) Install the JS packages:$ yarn install # or npm install3) In one terminal run the rails server: 4) In another terminal run the webpack server:
$ ./bin/webpack-dev-server
5) Visit the welcome page
http://localhost:3000/welcome/index
This repo contains two trees, one Webpacker and one Sprockets.
Each branch illustrates a react-rails ability.
master
-> Webpacker 3sprockets
-> Sprockets 3rails-production-version
-> Sprockets 3 + serving production prebundled reactrails-assets-sprockets
-> Sprockets 3 + using Rails-Assets.org (failed)generate-new-component
-> Webpacker 3 + new style componentwithout-ujs
-> Sprockets 3 + removing UJS and making component globally accessiblejsx-file-example
-> Webpacker 3 + file named .JSXcoffeescript-example
-> Webpacker 3 + Coffeescript WITH JSXRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4