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 buildjava -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:8080to view dashboard(work in progress) - Call
GET localhost:8080/anki/statsto get decks stats from running Anki Desktop - Call
POST localhost:8080/statsto manually put stats to storage(see requests.http)
Right now, deck names are hardcoded: Italiano, German