reactioncommerce/reaction-swag-shop

Name: reaction-swag-shop

Owner: Reaction Commerce

Description: null

Created: 2017-11-09 06:26:13.0

Updated: 2018-05-08 16:03:46.0

Pushed: 2018-05-08 16:03:44.0

Homepage:

Size: 2328

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Reaction Swag Shop

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. The plugin's current state is deployed here. There's also a blog post series on our Reaction Blog that explains in more detail about the evolution of this ticket.

Getting started

If you would like to use this shop plugin as a starting point for your own project, please follow the steps outlined below:

Step 1

Create a new Reaction project for your new shop: https://docs.reactioncommerce.com/reaction-docs/master/installation

Step 2

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):

d <your-new-shop-directory-name>/imports/plugins/custom
it clone https://github.com/reactioncommerce/reaction-swag-shop.git
Step 3

Ensure latest version of reaction-cli is installed

m i -g reaction-cli
Step 4

Install dependencies and start Reaction

 <your-new-shop-directory-name>
teor npm install
port SKIP_FIXTURES=1 && reaction
Troubleshooting

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

How the final swag shop will look like

Swag shop screenshot


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.