All Projects โ†’ azu โ†’ voting-badge

azu / voting-badge

Licence: other
๐Ÿ‘ voting badge like Travis CI

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

voting-badge

Deploy

Simple backend for voting badge.

Create Badge at Here

Usage

Vote

[![Vote](https://voting-badge.herokuapp.com/img?url=https://github.com/azu/voting-badge)](https://voting-badge.herokuapp.com/vote?url=https://github.com/azu/voting-badge)

API

Get badge img

https://voting-badge.herokuapp.com/img?url={URL}&style={STYLE}&label={LABEL}&color={COLOR}

{URL} : string as key

{STYLE} (optionnal) : string as style (default : flat)

{LABEL} (optionnal) : string as label (default : Vote++)

{COLOR} (optionnal) : string as color (default : green)

Return badge image url which is used http://shields.io/

NOTE

GitHub aggressive image caching.

Get number of votes

https://voting-badge.herokuapp.com/count?url={URL}

{URL} : string as key

Return number of votes.

Vote

https://voting-badge.herokuapp.com/vote?url={URL}

{URL} : string as key

Vote to {URL} - ๐Ÿ‘

Installation

Previously, Install dependency.

npm install

Develop

redis-server # launch redis-server
npm start

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].