voting-badge
Simple backend for voting badge.
Create Badge at Here
Usage
[![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.
- Install cario. For system-specific installation view the Automattic/node-canvas Wiki.
- Install Redis
npm install
Develop
redis-server # launch redis-server
npm start
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT