Skip to content

musial-bright/rails-reflux-reactjs-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

React with Rails steps

Configure

npm install -g grunt npm install -g yo npm install -g generator-react-webpack

mkdir /client cd client npm install yo react-webpack

create /app/assets/javascript/client-bundle.js

Add this to /config/environments/development.rb:

    config.action_controller.asset_host = Proc.new do |source|
      if source =~ /client-bundle/
        "http://localhost:8000/"
      end
    end
    config.assets.digest = false

Run

  • rails s
  • grunt webpack-dev-server

About

Rails + Reflux Reactjs Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages