Skip to content

sagarsane/version.is

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version.is

Single-page app and API for version checking of Open Source projects.

Origin

This is the result of a lazyweb-request by @higgo.

Data Source

Data is pulled in from the version.is-sources repo. The readme contains additional information.

Try it

An early implementation of the api is available at version-is.appspot.com.

Usage

Get a list of all projects monitored and their current version:

GET http://version.is/projects

Get the version of a single project:

GET http://version.is/<project_name>

The response can be delivered in 3 different formats; text/html, text/plain, application/json. You can specify the format using the querystring like this:

GET http://version.is/projects?format=<html|plain|json>
GET http://version.is/<project_name>?format=<html|plain|json>

Another way to specify the format, is using HTTP-Accept Headers. Consider the below example of fetching current jquery version in json format with curl in a terminal:

curl -i -H "Accept: application/json" "http://version.is/jquery"

Note that formats defined in the querystring overrules the HTTP-Accept header.

If you request the json format, you can specify a callback for JSONP, like this:

GET http://version.is/<project_name>?format=json&callback=<callbackFunctionName>

Running it locally

If you want to poke around the code and run it locally, all you need to do is to install the Google App Engine SDK for Python.

When you have installed the SDK, you clone the repo into a local folder, and "Add Existing Application..." from the app menus in the SDK. When that is done, you can run the app from within the SDK interface.

To build the local database, you just have to visit http://localhost:8080/tasks/get-versions in your browser. When having an empty database, it will take up to about 10 minutes at the moment. This will increase with the size of the sources repo. You can follow the progress of the task in the Logs, accessed from the SDK interface.

The default datastore is located in a temporary folder, that once in a while and on restarts, will be cleared. To ensure that you do not have to rebuild the database after each restart of the application, you can move it into a file in the project folder. I use the name localdatastore (which is in the .gitignore of this repo) and the following Launch flags:

--datastore_path=/Users/gustav/Projects/version.is/localdatastore --use_sqlite

You would obviously want to change the path of the --datastore_path parameter. The --use_sqlite flag, makes it use sqlite instead of the default mysql, which removes the mysql dependency and makes the application start up faster. It might make the application perform slightly worse, but it should not be a concern when running it for testing purposes.

About

version.is: Single-page app and API for version checking of Open Source projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages