Sign inSign up

thomaslacaze/wakapi-stats

By thomaslacaze

β€’Updated almost 5 years ago

Image
0

1.2K

thomaslacaze/wakapi-stats repository overview

⁠ πŸ“Š 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 VariableDefaultDescription
ENVIRONMENTdevWhether 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

Tag summary

Content type

Image

Digest

Size

10.9 MB

Last updated

almost 5 years ago

docker pull thomaslacaze/wakapi-stats