Skip to content

gabiseabra/react-spree-boilerplate

Repository files navigation

React Spree Boilerplate

This project is as base spree application with a frontend built with React + Redux.

Demo: https://react-spree-app.herokuapp.com

Stack

Ruby

  • Rails 5
  • Spree 3.2
  • React on Rails 8

Node

  • React 16
  • React Router 4
  • React Intl
  • Redux
  • Redux Saga
  • Reselect
  • React Bootstrap
  • Webpack + HMR

Installation

Setup services with docker:

docker-compose up

Install dependencies:

bundle install
yarn install

Setup the database:

bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed

Optionally, Spree sample data may be loaded by:

bundle exec rake spree_sample:load

Development

yarn run start:hot

Starts the app with hot module replacement. While this is the recommended approach, start:dev might also be used to start using watch mode instead of hmr.

yarn run start:dev

The store can be accessed at

http://localhost:3000