Rails, @spree, React, Redux, ES6, Webpack
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci change cache key in circleci config Nov 19, 2018
app Additional configuration for Sentry Oct 3, 2018
bin Update circleci config to use parallelism Oct 1, 2018
config Add dot env gem Nov 3, 2018
db Upgrade to Spree 3.7 with API v2 Sep 27, 2018
lib Remove previous webpack setup leftovers Sep 24, 2018
public Spree 3.0.5beta added Nov 1, 2015
spec Make js work in integration tests Nov 5, 2018
vendor/assets Add Spree default assets setup Sep 24, 2018
.babelrc Update circleci config to use parallelism Oct 1, 2018
.codeclimate.yml Remove reek & brakeman & add circle config instead Oct 2, 2018
.editorconfig Adding .editorconfig file Aug 9, 2016
.env.sample Make js work in integration tests Nov 5, 2018
.eslintignore ESlint upgrade Dec 14, 2017
.eslintrc Remove previous webpack setup leftovers Sep 24, 2018
.eslintrc.js Add eslint basic config Sep 25, 2018
.gitignore Add dot env gem Nov 3, 2018
.nvmrc Added NVM Oct 3, 2018
.postcssrc.yml Setup redux & a sample component Sep 25, 2018
.prettierrc Add standard eslint & prettier, fix all violations Sep 25, 2018
.rubocop.yml Update circleci config to use parallelism Oct 1, 2018
.ruby-version Remove reek & brakeman & add circle config instead Oct 2, 2018
Gemfile Make js work in integration tests Nov 5, 2018
Gemfile.lock Make js work in integration tests Nov 5, 2018
LICENSE.md year fix :) Aug 4, 2017
Procfile [#136417503] Clear cache after deploy Dec 21, 2016
README.md Added command required for Sentry to track git commits Oct 3, 2018
Rakefile rails + browserify + ES6 Nov 1, 2015
app.json replace newrelic with scout Oct 2, 2018
config.ru rails + browserify + ES6 Nov 1, 2015
docker-compose.yml
package.json Loosen the engines definitations for Yarn Oct 3, 2018
yarn.lock Add support for hot module reload Sep 26, 2018

README.md

Spark Starter Kit

Circle CI Maintainability

This is a starting point for all Spree/Rails related projects at Spark Solutions, it contains:

  • Ruby on Rails
  • Spree Commerce
  • Webpack via Webpacker gem
  • React with Redux

Installation

Install required tools and dependencies:

  • Docker
  • Homebrew if you're on OSX
  • PostgreSQL client - brew install postgresql or apt-get install postgresql-client
  • RVM - rvm use
  • NVM - nvm use
  • Yarn - npm install -g yarn
  • Bundler - gem install bundler

Stop local PostgreSQL Server

OS X

brew services stop postgresql

Linux

service postgresql stop

Run setup script

bin/setup

Development

To start the project just type:

bin/start

Running tests

Before running the test suite remember to fire up docker-compose (if it's not running already):

docker-compose start

And after that you can just use plain normal rspec:

rspec

Deployment

This repository is prepared for Heroku deployment with assets hosting on Amazon S3 for production and Amazon Cloudfront as a CDN.

Before the first deploy, in the project directory run:

heroku buildpacks:add heroku/nodejs
heroku buildpacks:add heroku/ruby
heroku labs:enable runtime-dyno-metadata

License

Spark Starter Kit is copyright © 2015-2017 Spark Solutions Sp. z o.o.. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About Spark Solutions

Spark Solutions

Spark Starter Kit is maintained and funded by Spark Solutions Sp. z o.o. The names and logos are trademarks of Spark Solutions Sp. z o.o.

We are passionate about open source software. We are available for hire.