Just clone and use routing, admin interface, API requests and others.
See package.json and Gemfile for versions
- Ruby on Rails 5
- Create React App
- Devise
- ActiveAdmin
- React
- Redux
- react-router v4
- Semantic UI React
- esLint
- Be sure that you have Node installed! We suggest nvm, with node version
v6.0
or above. git clone https://github.com/vacuumtubedriver/create-react-app-rails.git
cd create-react-app-rails
gem install foreman
bundle install
brew install yarn
cd client
yarn
cd ..
rake db:migrate
rake db:seed
rake start
-
Router: just add new route in
client/app/bundles/MainApp/routes/routes.jsx
-
API
- in component:
this.props.actions.callApi(url, method, storeKey);
- access response:
store.appReducers.get(storeKey)
- urls
/api/v0/
-
Linting:
cd client yarn lint