/Button

A Github hosted ecommerce example. It's a website where you can sell this free code for a dollar

Primary LanguageVueMIT LicenseMIT

Button

A Github hosted ecommerce example. It's a website where you can sell this free code for a dollar, see it live

Quickstart

  1. (5-10 minutes) Fork this repo, enable git pages for the main branch docs folder
  2. (10-20 minutes) Create a stripe account, Enable client only checkout (add your domain <USERNAME>.github.io), collect your public and private api keys
  3. (1 minute) Run the follwing code which adds a product to your stripe account and rebuilds the website with your public api key and product_id
git clone YOUR-FORK-URL && cd button
npm install
node quickstart.js --publickey PUBLIC_APIKEY --privatekey PRIVATE_APIKEY
git commit -m "Let's make some money" && git push

Docker

git clone YOUR-FORK-URL && cd button
docker build --tag button .
docker run -it  -v $PWD/docs:/button/docs button --publickey PUBLIC_APIKEY --privatekey PRIVATE_APIKEY
git commit -m "Let's make some money" && git push

Project Directory

Name Purpose
docs Where website is built into/served from
src Where website is developed
quickstart.js Script to add a "button" product to stripe
package.json Nodejs dependency management file
dockerfile Docker container setup file

Resources