Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gauravtiwari/webpack_on_rails
Webpack and React on Rails with server rendering using asset pipeline.
https://github.com/gauravtiwari/webpack_on_rails
Last synced: 18 days ago
JSON representation
Webpack and React on Rails with server rendering using asset pipeline.
- Host: GitHub
- URL: https://github.com/gauravtiwari/webpack_on_rails
- Owner: gauravtiwari
- Created: 2016-04-15T07:28:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-15T17:37:22.000Z (over 8 years ago)
- Last Synced: 2024-11-25T12:42:05.081Z (28 days ago)
- Language: Ruby
- Size: 31.3 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webpack on Rails example app (with server rendering)
Minimal and simple setup to use webpack with Rails asset pipeline for React and ES6. We are using `react-rails` gem to render and mount react components with server rendering support, but using webpack compiled code - both on server and client.Checkout the webpack config files and `assets/webpack` folder
Check out the `app/assets/javascripts` folder
```bash
components: Contains all react components splitted in directories (same namespace as rails views)
components.js: components manifest
```
## Features
* React with ES6 syntax
* Babel transpiler
* Webpack - possibilities are endless
* Basic ActionCable integration
* NPM support
* Code watching
* React Server and Client rendering## Running
```bash
git clone [email protected]:gauravtiwari/webpack_on_rails.git
cd webpack_on_rails
bundle install
npm install
chmod 777 start
./start
# Or Alternatively
bundle exec foreman start
```