Giter VIP home page Giter VIP logo

versions-tracker's Introduction

Build status Quality Gate Status

Use this project to monitor latest and supported versions of languages:

  • Java
  • Kotlin
  • Scala
  • Go
  • Ruby
  • Swift
  • Dotty (aka Scala 3)

This service uses github api, which has limited number of requests per hour. To increase the limit it's better to authorize with github token by setting environment variable $GITHUB_TOKEN. The service can access github api anonymously as well but at rate of 60 requests/hour.

To build project and run all tests just run ./gradlew build command.

To start the server use ./gradlew run command. The service will be available at localhost:8080. Available commands:

  • To get latest versions in json format use

    GET /latest

    Arguments: langs

    Example: localhost:8080/latest?langs=java,kotlin,ruby,go

  • To get view latest and supported versions in json format use

    GET /versions

    Arguments: langs

    Example: localhost:8080/versions?langs=java,kotlin,ruby,go

  • To get view latest and supported versions as html table use

    GET /view/versions

    Arguments: langs

    Example: localhost:8080/view/versions?langs=java,kotlin,ruby,go

  • To invalidate cache and force updates of latest versions use

    GET /invalidate

    Example: localhost:8080/invalidate

To deploy function in Google cloud you first need to run command ./gradlew buildFunction to copy fat jar into separate directory "deploy". And then run (for this command you must be authorized in google cloud console)

 gcloud functions deploy releases-function \
    --entry-point com.example.versions.function.ReleasesFunction \
    --source=function/build/deploy --runtime java11 \
    --memory 512MB --trigger-http --allow-unauthenticated

To run function locally run this command:

./gradlew runFunction -PrunFunction.target=com.example.versions.function.ReleasesFunction

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.