Fetches statistics of learned cards from Anki Desktop and renders them as html page.
https://anki.pgordon.dev/stats
- Kotlin
- Ktor
- Docker
- Gradle
- jib gradle plugin
- Anki connect
- Install Kotlin
- Install Gradle
- Install Anki Desktop with AnkiConnect addon
- Install Docker(optional)
- Clone project to local machine.
- Run
Application.kt
- Or run IntelliJ profile from .run directory
./gradlew build
java -jar build/libs/anki-stats-exporter-0.0.1.jar
docker build -t anki-stats .
docker run -m512M --cpus 2 -it -p 8080:8080 --rm anki-stats
- Call
GET localhost:8080
to view dashboard(work in progress) - Call
GET localhost:8080/anki/stats
to get decks stats from running Anki Desktop - Call
POST localhost:8080/stats
to manually put stats to storage(see requests.http)
Right now, deck names are hardcoded: Italiano, German