BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website.
Branch: master
Clone or download
spencercanner Merge pull request #610 from Shopify/update-docs-for-cart-note
Update docs with new cart config options
Latest commit b6c4eb6 Feb 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs update docs with new cart config options Feb 5, 2019
script Remove npm publish from deploy.js and add it to shipit.yml Apr 2, 2018
src Merge pull request #607 from Shopify/fix-firefox-cart-styles Feb 4, 2019
test Merge pull request #601 from Shopify/add-cart-notes Feb 4, 2019
.babelrc IE10 support (#396) Dec 5, 2017
.eslintignore code cleanup Jul 11, 2016
.eslintrc performance fixes (#390) Dec 5, 2017
.gitignore
.npmignore
.nvmrc add storefront id to collections Dec 5, 2017
.travis.yml Add Travis CI Jun 28, 2018
CODE_OF_CONDUCT.md add meta docs Feb 17, 2017
CONTRIBUTING.md add meta docs Feb 17, 2017
DEPLOYING.md update md files Feb 23, 2017
LICENSE.txt
config.ejson aws token rotation Nov 2, 2016
dev.yml add storefront id to collections Dec 5, 2017
index.example.html add srcLarge for default horizontal layouts and update index.example.… Dec 5, 2017
package.json 0.10.0 Feb 4, 2019
readme.md Add Travis CI Jun 28, 2018
shipit.yml Remove npm publish from deploy.js and add it to shipit.yml Apr 2, 2018
testem-ci.json Add Travis CI Jun 28, 2018
testem.json
yarn.lock bump js buy sdk to v2.0.1 Jan 17, 2019

readme.md

BuyButton.js

BuyButton.js on NPM Travis

BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website. It allows you to create interactive UI components such as product listings and shopping carts with minimal configuration, while allowing you to easily customize the appearance and behaviour of the components. It uses the JS Buy SDK to connect to your Shopify store, giving you access to your products and collections.

To get started, take a look at the documentation. For questions, suggestions and feeback, please create an issue.

Development

yarn
cp index.example.html index.html
  • Add your API key and shop domain to index.html
  • Set a product ID in index.html
yarn run start

Will watch for changes, compile src/ to tmp/ using babel & browserify, and run a server on port 8080.

Testing

yarn run test

will run full test suite locally

yarn run test-dev

Will watch for changes and run test suite.

Documentation

To run docs locally, install jekyll:

gem install jekyll
yarn run docs

Doc server will run at http://localhost:4000/buy-button-js/ Docs source files are located in /docs. Docs are automatically deployed to gh-pages from master.