โ WIP NOTICE: This Reaction plugin is under active development and is not completed yet. Things may have bugs or are still missing, so please be aware of that and use it on your own risk. You may want to follow our Reaction Blog, where we're going to communicate the project's progress. If case you're interested in a sneak preview: The project's current state is deployed here and will evolve over time.
This repository contains the reaction-swag-shop plugin that's intended as a learning resource for everybody who's facing the task of customizing Reaction for her/his own shop implementation. Additionally, this repository drives our real swag shop that's offering merchandising products at swag.getreaction.io.
If you would like to use this shop plugin as a starting point for your own project, please follow the steps outlined below:
Create a new Reaction project for your new shop: https://docs.reactioncommerce.com/reaction-docs/master/installation
Clone this shop repository into the custom plugin folder. In your project directory, execute the following bash commands (Windows commands will look a bit different):
$ cd <your-new-shop-directory-name>/imports/plugins/custom
$ git clone https://github.com/reactioncommerce/reaction-swag-shop.git
Ensure latest version of reaction-cli is installed
$ npm i -g reaction-cli
Install dependencies and start Reaction
$ cd <your-new-shop-directory-name>
$ meteor npm install
$ export SKIP_FIXTURES=1 && reaction
In case you experience the error Unknown asset: plugins/reaction-swag-shop/images/BCTMZ6HTxFSppJESk.jpg
, it's very
likely that the SKIP_FIXTURES environment variable is not set correctly. In that case, reset the database via
reaction reset -n
and ensure SKIP_FIXTURES is set properly before running reaction