Skip to content

About

A simple CLI-based task tracker to manage your to-do list — track pending tasks, in-progress work, and completed items while practicing filesystem handling and user input in a clean command-line workflow.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Tracker CLI

A simple command-line task tracker built in Java. This application allows users to manage tasks and track their progress using a local JSON file.

Features

  • Add tasks
  • Update tasks
  • Delete tasks
  • Mark tasks as todo, in-progress, or done
  • List all tasks
  • List tasks by status
  • Persistent storage using a JSON file

Requirements

  • Java JDK 8 or higher
  • Command Line (CMD, PowerShell, or Terminal)

How to Run the Project

1. Clone the Repository

git clone [https://github.com/fongne03/task-tracker-cli.git](https://github.com/fongne03/task-tracker-cli.git)
cd task-tracker-cli

2. Compile the Project

javac *.java

3. Run the Application

java TaskCli

Usage Examples

Add a Task

java TaskCli add "Buy groceries"

List All Tasks

java TaskCli list

List Tasks by Status

java TaskCli list todo
java TaskCli list in-progress
java TaskCli list done

Mark a Task as In Progress

java TaskCli mark-in-progress 1

Mark a Task as Done

java TaskCli mark-done 1

Update a Task

java TaskCli update 1 "Buy groceries and cook dinner"

Delete a Task

java TaskCli delete 1

Data Storage

Tasks are stored in a file named tasks.json in the project directory. The file is automatically created if it does not exist.

Example JSON structure:

[
  {
    "id": 1,
    "description": "Buy groceries",
    "status": "todo",
    "createdAt": "2024-01-09T10:00:00",
    "updatedAt": "2024-01-09T10:05:00"
  }
]

Each task includes:

  • ID: Unique identifier
  • Description: Details of the task
  • Status: Current state of the task
  • Created timestamp: Date and time of creation
  • Updated timestamp: Date and time of last update

Project Page

More project details at: https://roadmap.sh/projects/task-tracker

GitHub Repository: https://github.com/fongne03/task-tracker-cli

Notes

  • No external libraries or frameworks are used.
  • All file operations use Java’s native filesystem APIs.
  • This project is intended for learning and practice.

About

A simple CLI-based task tracker to manage your to-do list — track pending tasks, in-progress work, and completed items while practicing filesystem handling and user input in a clean command-line workflow.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages