A simple web-page/api resource that allows you to display the latest releases to your users and allow them to download them. It is riented to work with and support private github repositories.
git clone
npm install
- Create a local config file based off of the
config.dest.json
viacp config.dest.json config.json
- Edit it to reflect your needs
- Run in develop mode to test it out locally
GITHUB_TOKEN=... npm run dev
now --prod -e GITHUB_TOKEN=...
CACHE_DELAY=900000
- cache time for the specific releaseMAXIMUM_RELEASES=25
- how many releases should be pulled from gihtub and displayed onAll releases
pagePRE_RELEASES=true
- do you want to display only pre-releases or stable releases (false by default)
Ability to fetch a release directly by matched keywords:
/api/fetch/[owner]/[repo]/[platform]/[keyword]/[version]
Examples:
/api/fetch/inlife/releases/win/serv/latest
/api/fetch/inlife/nexrender/lin/worker/1.23.2
By default all releases are cached for 15 minutes. To bust cache (for example right after the release) you can call GET /api?cache=bust
The overall idea and design elements are based off the ZEIT's Hazel, props to them for making such a cool tool.