Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gauravtiwari/brunch_on_rails
Use Brunch with Rails asset pipeline to compile and render react on ES6 dynamically on runtime
https://github.com/gauravtiwari/brunch_on_rails
Last synced: 16 days ago
JSON representation
Use Brunch with Rails asset pipeline to compile and render react on ES6 dynamically on runtime
- Host: GitHub
- URL: https://github.com/gauravtiwari/brunch_on_rails
- Owner: gauravtiwari
- Created: 2016-04-12T11:33:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-13T09:14:27.000Z (over 8 years ago)
- Last Synced: 2024-12-05T13:40:27.636Z (about 1 month ago)
- Language: JavaScript
- Size: 2.53 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brunch on Rails example application (no server rendering)
Minimal and Simple setup to use Brunch (http://brunch.io/) with Rails asset pipeline to compile and render react on ES6 dynamically on runtime without any gems.Check out the `app/assets/components` folder
```bash
src: Contains all react components splitted in directories (same namespace as rails views)
utils: Some utilities classes and functions to dynamically render react component
```
## Features
* React with ES6 syntax
* Babel transpiler
* Basic ActionCable integration
* NPM support
* Bower support
* Code watching## Configuration
More documentation can be found here for brunch: https://github.com/brunch/brunch/blob/master/docs/config.md#files## Running
```bash
git clone [email protected]:gauravtiwari/brunch_on_rails.git
cd brunch_on_rails
bundle install
chmod 777 start
./start
# Or Alternatively
bundle exec foreman start
```