Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Shopify/buy-button-js
BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website.
https://github.com/Shopify/buy-button-js
ecommece javascript
Last synced: 7 days ago
JSON representation
BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website.
- Host: GitHub
- URL: https://github.com/Shopify/buy-button-js
- Owner: Shopify
- License: mit
- Created: 2016-06-14T21:04:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T20:47:42.000Z (5 months ago)
- Last Synced: 2024-10-17T18:52:55.244Z (17 days ago)
- Topics: ecommece, javascript
- Language: JavaScript
- Homepage: http://shopify.github.io/buy-button-js/
- Size: 2.94 MB
- Stars: 243
- Watchers: 459
- Forks: 115
- Open Issues: 139
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# BuyButton.js
[BuyButton.js on NPM](https://www.npmjs.com/package/@shopify/buy-button-js)
[![Travis](https://travis-ci.com/Shopify/buy-button-js.svg?branch=master)](https://travis-ci.com/Shopify/buy-button-js)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](http://shopify.github.io/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](http://shopify.github.io/buy-button-js/).
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.