KotlinbeginnercliAI generated

Console Habit Tracker

Build a terminal application that lets users log daily habits, mark them complete, and view streak statistics, persisting data to a local JSON file. Learners practice file I/O, data classes, and basic serialization in Kotlin.

Estimate
~7h
Steps
5
Completed by
0
Proposed by
codeseed.app

kotlinx-serialization · Gradle

Project roadmap

  1. 01

    Design the data model

    ~1h

    Create a Habit data class with name, completion dates, and streak fields.

  2. 02

    Implement JSON persistence

    ~1.5h

    Use kotlinx-serialization to save and load the habit list from a local JSON file.

  3. 03

    Build the CLI menu

    ~2h

    Create a loop-based text menu for adding habits, marking them done, and listing them.

  4. 04

    Add streak calculation

    ~1.5h

    Write logic to compute current and longest streaks based on stored dates.

  5. 05

    Polish and test

    ~1h

    Handle malformed input and missing files, then test the full add/complete/view flow.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~7h · 5 steps

Tech stack

kotlinx-serializationGradle