Skip to content

Ch-Valentine/rails-react-redux-boilerplate

Repository files navigation

The rails react redux boilerplate.

Installation

Be sure that you have installed:

  1. [email protected] -> $ sudo npm install n -g && sudo n 5.7.0
  2. yarnpkg
  3. ruby-2.3.1

Terminal:

  • $ git clone [email protected]:Ch-Valentine/rails-react-redux-boilerplate.git
  • $ cd rails-react-redux-boilerplate

or you can rename this project and change the git repo:

  • $ git clone [email protected]:Ch-Valentine/rails-react-redux-boilerplate.git --origin rails-react-redux-boilerplate your-project-name
  • $ cd your-project-name
  • $ ./bin/rename_project YourProjectName
  • $ ./bin/reset_git https://github.com/yourusername/your-project-name.git

then:

  1. $ bundle install
  2. $ npm run yarn or $ cd app/frontend && yarn
  3. $ rails s
  4. $ npm start or $ npm run build in production
  5. open http://localhost:3000/
  6. Try to change the app/frontend/src/components/AppTitle/ (index.jsx or style.scss)
  7. Look on changes without reloading.

Add a new npm package

$ cd app/frontend and $ npm i --save [package] or $ yarn add [package]

Features:

  1. Webpack development and production build.
  2. React-hot-reload
  3. Redux dev-tools
  4. yarnpkg
  5. eslist
  6. ES6 and ES7 compiler
  7. request to the Rails
  8. 404 page

Todo

  • Split js files for an optimization.
  • Include a JS Testing frameworks.
  • Upgrade npm dependencies to latest versions.
  • Upgrade to ruby and rails latest versions

About

A simple rails react redux boilerplate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published