Git Product home page Git Product logo

downloads's Introduction

downloads

downloads is an automatic download page generator. It takes a config file that describes the repositories to check, fetches release information for each of them, and generates a nice download page.

Running for development

  • go run *.go
  • windows users: go build then run downloads.exe
  • Open http://localhost:8891/ in your browser
  • Tweak the index.html and reload (reduce TemplateCacheTime in the config when developing).

Configuration

The following fields are used on the config.json:

  • ListenAddr: The address on which to listen for HTTP requests.
  • RepoCacheTime: How long to cache Github repo data (in nanoseconds).
  • TemplateCacheTime: How long to cache evaluation of the index.go.html template (in nanoseconds).
  • Repos: A list of repositories to present download data for. Each contains the following fields:
    • FriendlyName: What to call the project on the download page.
    • GithubName: What it's actually called on github (owner/repo).
    • NameExpr: What to call the download assets, either as a static "string" (used verbatim) or as a "/regexp/" where the first grouped match is used.
    • ArchExpr: As NameExpr, to extract the asset architecture.
    • OSExpr: As NameExpr, to extract the asset operating system.

downloads's People

Contributors

calmh avatar norgeous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

downloads's Issues

Needs smarter caching

Reload Github assets in the background, instead of punishing some random request with seconds of latency.

Manual cache refresh

POST /refresh?secret=aslkdjaslkdjaslk to manually clear the cache. Could be used from release scripts, for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.