LacazeThomas / wakapi-stats

Extract stats from wakapi and get an image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“Š Wakapi-Stats

Generator images from Wakapi

Report Bug Β· Request Feature

πŸ“Š Metrics past 30 days
πŸ’¬ Most used programming languages πŸ› οΈ Most used editors

🧐 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)
  1. Clone the repository
git clone https://github.com/LacazeThomas/wakapi-stats.git
  1. Change the working directory
cd wakapi-stats
  1. Setup environnement variables
Environment Variable Default Description
ENVIRONMENT dev Whether to use development or production settings
  1. Run the app
go build -o wakapi-stats && ./wakapi-stats

🌟 You are all set!

πŸ™‡ Special Thanks

Dockerfile

Dockerfile

License

MIT


Developed with ❀️ in France

About

Extract stats from wakapi and get an image

License:MIT License


Languages

Language:Go 96.1%Language:Dockerfile 3.9%