Skip to content

LacazeThomas/wakapi-stats

Repository files navigation

📊 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
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