https://github.com/dashpilot/gumgit
Sell software straight from your Github repo, payment via Gumroad
https://github.com/dashpilot/gumgit
gumroad repo sell software
Last synced: 2 months ago
JSON representation
Sell software straight from your Github repo, payment via Gumroad
- Host: GitHub
- URL: https://github.com/dashpilot/gumgit
- Owner: dashpilot
- Created: 2022-03-29T12:23:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-29T13:57:08.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T12:49:08.635Z (about 1 year ago)
- Topics: gumroad, repo, sell, software
- Language: JavaScript
- Homepage: https://gumgit.vercel.app
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gumgit
Sell software straight from your private Github repo. Payment via Gumroad, deployment via Vercel
## How To
1. In Gumroad, create a new application: https://app.gumroad.com/settings/advanced and an access token
2. Clone this repo and deploy it to Vercel, create an environment variable `GR_TOKEN` with the Gumroad access token you received in step one
3. Create a new product on Gumroad and choose `redirect to URL after purchase` as the delivery method
4. Set the URL to https://{your-project-name}.vercel.app/api/download
5. Done! All files in the `dist`-folder will automatically be zipped and downloaded once a user purchases your product! The sale_id that is sent with the request from Gumroad, is verified against the Gumroad API. If a sale_id is not found, users will see an error.
I have not yet found out how to zip/download files that are generated by a build step (and if that's possible at all via Vercel). So for now, this only works for source files, or files you've built and committed ahead of time. You can however also include extra files at run time (see api/download.js), which opens up possibilities for user-generated content.
## Creating a custom product page
You can use the `public` folder to create you custom product page and link to your product page on Gumroad.