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
- 01
Design the data model
~1hCreate a Habit data class with name, completion dates, and streak fields.
- 02
Implement JSON persistence
~1.5hUse kotlinx-serialization to save and load the habit list from a local JSON file.
- 03
Build the CLI menu
~2hCreate a loop-based text menu for adding habits, marking them done, and listing them.
- 04
Add streak calculation
~1.5hWrite logic to compute current and longest streaks based on stored dates.
- 05
Polish and test
~1hHandle malformed input and missing files, then test the full add/complete/view flow.
Resources
- DocsKotlin Docs
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack