https://github.com/dashpilot/gitzip
Zip and download the contents of a private/public repo on demand
https://github.com/dashpilot/gitzip
Last synced: 25 days ago
JSON representation
Zip and download the contents of a private/public repo on demand
- Host: GitHub
- URL: https://github.com/dashpilot/gitzip
- Owner: dashpilot
- Created: 2022-03-28T23:29:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-29T15:42:23.000Z (about 4 years ago)
- Last Synced: 2025-01-14T12:49:07.895Z (over 1 year ago)
- Language: JavaScript
- Homepage: gitzip.vercel.app
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitzip
Zip and download the contents of a subfolder in a private/public repo on demand
# How to
1. Clone this repo
2. Put the files you want to be downloadable in the "dist" folder. You can also dynamically add files at runtime (see api/download.js). I've not yet been able to figure out how to add files that are the result of a build step.
3. Deploy the repo to Vercel.
4. Visit /api/download to generate and download the zip
The 'dist' folder is private by default, so people can only access the files by downloading the zip. You can however set the 'dist' folder to be the public folder in Vercel.