Giter Site home page Giter Site logo

repo-activity-server's Introduction

Last Commit Build Status

Background

When browsing through repositories on GitHub it is nice to be able to easily tell if a repository has been inactive without having to leave the repository home page. One way to do this is to have a badge on the README that indicates when the last commit was made like this Last Commit . This application is a node.js server that will serve up badges like this that you can include on the README of your repository or anywhere else a svg graphic is supported. Simply indicate the Github username and repository name in the URL and the server returns an svg graphic badge indicating when the last commit was made on that repository.

Usage

Clone the repository and install dependencies:
git clone https://github.com/kenjiO/repo-activity-server.git
cd repo-activity-server
npm install

Set the PORT environment variable port to the TCP port number that the server will listen on. If PORT is not set it will listen on port 3000.

Start the server:
npm run start

Retrieving a badge

The format for the URL to retrieve a badge is
http://hostname[:port]/v1/GithubUserName/RepoName
where
hostname is the name or IP address of the server
port is the port number (if not using port 80)
GithubUserName is the GitHub username for the repository
RepoName is the name of the repository

A pilot server for this repository is running at repo-activity.herokuapp.com

So the badge for this repository on that server is at
http://repo-activity.herokuapp.com/v1/kenjio/repo-activity-server

To add the badge to a README.md file use the following format
![Last Commit](http://repo-activity.herokuapp.com/v1/kenjio/repo-activity-server)

repo-activity-server's People

Contributors

kenjio avatar

Watchers

 avatar

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.