https://github.com/tb/rails-react-webpack-demo
Replace assets pipeline and rails-react with webpack
https://github.com/tb/rails-react-webpack-demo
Last synced: over 1 year ago
JSON representation
Replace assets pipeline and rails-react with webpack
- Host: GitHub
- URL: https://github.com/tb/rails-react-webpack-demo
- Owner: tb
- Created: 2016-11-05T20:33:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-05T22:16:23.000Z (over 9 years ago)
- Last Synced: 2025-02-09T17:17:50.522Z (over 1 year ago)
- Language: Ruby
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rails-react-webpack-demo
Replace assets pipeline and [rails-react](https://github.com/reactjs/react-rails) with webpack
## Requirements
* node ([nvm](https://github.com/creationix/nvm) recommended)
## Install
bundle
cd frontend
npm i
## Starting
rails s
cd frontend
npm start
open http://localhost:3000
## Deployment to heroku
heroku buildpacks:clear
heroku buildpacks:set heroku/nodejs
heroku buildpacks:add heroku/ruby --index 2
git push heroku master
open https://rails-react-webpack-demo.herokuapp.com