A Full tutorial article can be found at: Part 2: Server Rendering a ES6 React.js App Using Ruby on Rails.
- Be sure that you have Node installed! We suggest nvm, with node version v5.3.0 or above. See part 1 of the blog.
git clone [email protected]:wego/es6-react-webpack-rails-demo.git
cd es6-react-webpack-rails-demo
- Check that you're using the right version of node. Run
node -v
to check, you should see5.3.0
bundle install
npm install
rails server
- Open a browser tab to
http://localhost:3000
for the Facebook example