A simple task tracker built with Node.js and TypeScript, providing a command-line interface to manage tasks. This solution is part of the Roadmap Backend Projects - Task Tracker challenge.
- Add tasks: Create new tasks with descriptions.
- Update tasks: Modify existing tasks' descriptions.
- Delete tasks: Remove tasks by their ID.
- Mark tasks: Update tasks' status to "in-progress", "done", or "todo".
- List tasks: View all tasks or filter by their status.
Clone the repository to your local machine:
git clone https://github.com/your-username/npx tsx src/index.ts.git
cd npx tsx src/index.ts
Install the required dependencies by running the following command:
npm install
You can use the npx tsx src/index.ts
command to manage your tasks. Here are some of the available commands:
To add a new task with a description:
npx tsx src/index.ts add "Task description"
To update an existing task's description:
npx tsx src/index.ts update 1 "New task description"
To delete a task by its ID:
npx tsx src/index.ts delete 1
To mark a task as "in-progress", "done", or "todo":
npx tsx src/index.ts mark-in-progress 1
npx tsx src/index.ts mark-done 1
npx tsx src/index.ts mark-todo 1
To list all tasks or filter by their status:
npx tsx src/index.ts list
npx tsx src/index.ts list todo
npx tsx src/index.ts list in-progress
npx tsx src/index.ts list done