An open API service indexing awesome lists of open source software.

https://github.com/threadheap/github-stats-bot

Github slack stats bot
https://github.com/threadheap/github-stats-bot

github-stats-bot nivo serverless-framework

Last synced: 5 months ago
JSON representation

Github slack stats bot

Awesome Lists containing this project

README

          

# github-stats-bot

Github stats rendering service
Written in typescript using [serverless framework](https://serverless.com/), [phantomjs](http://phantomjs.org/) and [nivo](http://nivo.rocks/#/).

[Medium story](https://medium.freecodecamp.org/how-to-build-a-github-bot-with-phantomjs-react-and-serverless-framework-7b66bb575616)

## How to use

1. Clone repo
2. Go to repo root folder
3. Run

```sh
yarn
```

4. Change deployment bucket in `serverless.base.js`
5. Install [serverless framework](https://serverless.com/) and [serviceless cli tool](https://github.com/threadheap/serviceless)
(You'll also have to configure your AWS credentials, see [quick-start](https://serverless.com/framework/docs/providers/aws/guide/quick-start/))

```sh
yarn add -g serverless
yarn add -g serviceless
```

6. To deploy run

```sh
sudo GITHUB_TOKEN= SLACK_TOKEN= slx deploy all
```

Examples of reports:
![Contributor stats serverless](https://cdn-images-1.medium.com/max/1600/1*PpPdZg9hW4ee7VbCLQM7Gw.png)
![Contributor stats react](https://cdn-images-1.medium.com/max/1600/1*taq4dd5hTHMIXlcUdPl0rQ.png)
![Contributor stats nivo](https://cdn-images-1.medium.com/max/1600/1*KPvScIrez3aAsbwt_nDAuA.png)

## LICENCE

MIT [@pavelvlasov](https://github.com/pavelvlasov)