Skip to content

stefsava/rails51webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This README would document whatever steps are necessary to get the application up and running.

  1. create folder
$ mkdir test-rails-51
$ cd test-rails-51
  1. create Gemfile
source "https://rubygems.org"
ruby '2.3.1'
gem 'rails', :git => 'https://github.com/rails/rails.git'
gem 'rack', :git => 'https://github.com/rack/rack.git'
gem 'arel', :git => 'https://github.com/rails/arel.git'
  1. run bundle
$ bundle
  1. create rails application
$ bundle exec rails new . --webpack --dev --force
  1. run rails and webpack-watcher
$ rails s

in another console

$ ./bin/webpack-watcher

you can see at http://localhost:3000 the rails welcome page

Ruby on Rails (image)
Yay! You’re on Rails!
Welcome (image)
Rails version: 5.1.0.alpha
Ruby version: 2.3.1 (x86_64-darwin16)
  1. initialize git
$ git init
$ git add .
$ git commit -m "initial commit"
  1. add react with webpacker
$ rails webpacker:install:react
  1. add redux and react-redux
$ bin/yarn add redux
$ bin/yarn add react-redux

Initializing from the repo

When you download from git, you need this extra step:

$ bin/yarn

About

Sandbox with rails 5.1 (edge), webpack and reactjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published