shoptet / shoptet-bender

Tooling for visual addons local developement using Browsersync.
MIT License
11 stars 9 forks source link

Shoptet Bender 🤖

Introduction

Shoptet Bender proxies remote e-shop to localhost while injecting and serving your local style.css and script.js. This tool enables to development of visual changes without breaking the production e-shop. It is also suitable for Premium e-shop development, while emulation of the Blank mode is possible.

How it works

graph TB
A(Customized e-shop) -- Browsersync proxy <br> and code injection --> B(Your browser)
C(Local files) -- Static served files --> B

Install

Node >= 14 prerequisited\ Install global using yarn:\ yarn global add git+https://github.com/shoptet/shoptet-bender.git

ℹ️ On Windows platform, you may need to add Yarn binary to your path:

Usage

Step-by-step guide to start

  1. Create a folder for your files (css, js) that need to be injected to remote e-shop on localhost (let's say "my-project")
  2. Inside your project folder create another folder named "src"
  3. Create or move your "style.css" and "script.js" files into "src" folder
  4. Run --remote e-shop in console (let's say "shp-bender --remote https://classic.shoptet.cz/")

And you're ready to go -> enjoy coding and development ;)

OR

Try shp-bender -h for CLI help

Posible tool improvements

Shoptet Bender is an open-source project, so your PRs are very welcomed. There are some suggestions for possible features, as Shoptet don't have the resources to develop this tool actively. So it is left as is for your active development. Some minor feature updates are possible. What could be done: