Awesome
<h1 align="center"> π Wakapi-Stats </h1> <h2 align="center"> Generator images from Wakapi </h2> <p align="center"> <img src="https://badges.fw-web.space/github/v/release/lacazethomas/wakapi-stats"> <a href="https://goreportcard.com/report/github.com/LacazeThomas/wakapi-stats"> <img src="https://goreportcard.com/badge/github.com/LacazeThomas/wakapi-stats"> </a> <img src="https://badges.fw-web.space/github/languages/code-size/lacazethomas/wakapi-stats"> <img src="https://badges.fw-web.space/github/license/LacazeThomas/wakapi-stats"> <a href="https://drone.thomaslacaze.fr/LacazeThomas/wakapi-stats"> <img src="https://drone.thomaslacaze.fr/api/badges/LacazeThomas/wakapi-stats/status.svg"> </a> <a href="https://coveralls.io/github/LacazeThomas/wakapi-stats?branch=main"> <img src="https://coveralls.io/repos/github/LacazeThomas/wakapi-stats/badge.svg?branch=main"> </a> </p> <p align="center"> <a href="https://github.com/LacazeThomas/wakapi-stats/issues/new/choose">Report Bug</a> Β· <a href="https://github.com/LacazeThomas/wakapi-stats/issues/new/choose">Request Feature</a> </p> <table> <tr> <th colspan="2" align="center"> π Metrics past 30 days </th> </tr> <tr> <th>π¬ Most used programming languages</th> <th>π οΈ Most used editors</th> </tr> <tr> <td align="center"> <img alt="" width="380" src="https://wakapi-stats.thomaslacaze.fr/api/v1/languages?url=https://stats-code.thomaslacaze.fr/api/v1/users/thomaslacaze/stats/last_30_days"> <img width="800" height="1" alt=""> </td> <td align="center"> <img alt="" width="380" src="https://wakapi-stats.thomaslacaze.fr/api/v1/editors?url=https://stats-code.thomaslacaze.fr/api/v1/users/thomaslacaze/stats/last_30_days"> <img width="800" height="1" alt=""> </td> </tr> </table>π§ Features
-
β 100 % free and open-source
-
β No need CI
-
β Generate most used editors
-
β Generate most used programming languages
-
β Generate most used operating systems
-
β Self-hosted
π§ Endpoint availables
(/stats/editors, /stats/languages, /stats/operatingSystems, /stats/machines, /stats/projects)
Range possibility today, yesterday, week, month, year, 7_days, last_7_days, 30_days, last_30_days, 12_months, last_12_months, any
Please do not forget to put your wakapi endpoint into public
http://localhost:8080/api/v1/editors?url=https://stats-code.thomaslacaze.fr/api/v1/users/thomaslacaze/stats/30_days
βοΈ Public instance
https://wakapi-stats.thomaslacaze.fr/api/v1/editors?url=https://stats-code.thomaslacaze.fr/api/v1/users/thomaslacaze/stats/30_days
π οΈ Installation Steps
π³ Option 1: Run from Docker run
# Run the container
$ docker run -d \
-p 8080:8080 \
-e "ENVIRONMENT=prod" \
--name wakapi-stats thomaslacaze/wakapi-stats:1.1.0
π³ Option 2: Run from Docker-compose
See here
π» Option 3: Run from source
Prerequisites
- Go >= 1.8 (with
$GOPATH
properly set)
- Clone the repository
git clone https://github.com/LacazeThomas/wakapi-stats.git
- Change the working directory
cd wakapi-stats
- Setup environnement variables
Environment Variable | Default | Description |
---|---|---|
ENVIRONMENT | dev | Whether to use development or production settings |
- Run the app
go build -o wakapi-stats && ./wakapi-stats
π You are all set!
π Special Thanks
- Ferdinand MΓΌtsch for amazing wakapi
- Will Charczuk for the awesome go-chart
Dockerfile
<a href="https://github.com/LacazeThomas/wakapi-stats/blob/main/Dockerfile">Dockerfile</a>
License
<a href="https://github.com/LacazeThomas/wakapi-stats/blob/main/LICENSE">MIT</a>
<hr> <p align="center"> Developed with β€οΈ in France </p>