Sample solution for the task-tracker challenge from roadmap.sh.
Task tracker is a project used to track and manage your tasks. In this task, you will build a simple command line interface (CLI) to track what you need to do, what you have done, and what you are currently working on.
- Add tasks
- Update tasks
- Delete tasks
- Mark tasks as in progress or done
- List all tasks
- List tasks by status (done, todo, in-progress)
- Node.js (version 12 or later)
Clone the repository and run the following command:
git clone https://github.com/Rohit8BitCoder/task-tracker-cli.git
cd task-tracker-cli
Run the following command to build and run the project:
node task-cli.js add "Task description"
node task-cli.js add "Buy groceries"
node task-cli.js update <task_id> "New task description"
node task-cli.js update 1 "Buy groceries and cook dinner"
node task-cli.js delete <task_id>
node task-cli.js delete 1
node task-cli.js mark-in-progress <task_id>
node task-cli.js mark-in-progress 1
node task-cli.js mark-done <task_id>
node task-cli.js mark-done 1
node task-cli.js list
node task-cli.js list done
node task-cli.js list todo
node task-cli.js list in-progress