todo_list_by_muneeb
v1.0.0
Published
A simple command-line Todo app built with TypeScript and Node.js that allows you to manage your tasks.
Downloads
1
Readme
CLI_Todo_List_by_Muneeb
Todo App
A simple command-line Todo app built with TypeScript and Node.js that allows you to manage your tasks.
Description
Welcome to the Todo App! This program lets you create and manage your tasks using a command-line interface. You can add new tasks, mark tasks as done, and list your tasks. The app stores your tasks in a JSON file for persistence across sessions.
How to Use
Clone or download this repository to your local machine.
Open your terminal and navigate to the directory where the Todo app files are located.
Make sure you have Node.js and npm installed on your machine. You can download them from nodejs.org.
Install the required dependencies using the following command:
npm install
Start the Todo app by running the following command:
tsc ToDO_list.ts && node ToDo_list.js
Follow the prompts to interact with the app. You can add new tasks, mark tasks as done, list tasks, and exit the app.
Your tasks will be stored in the
todos.json
file in the app's directory.
Code Overview
The Todo app is implemented using TypeScript and the inquirer
library for user input. Here's a brief overview of how the code works:
- The program uses the
fs
module to read and write tasks to a JSON file. - The
TodoApp
class manages the core functionality of adding, marking, and listing tasks. - Users interact with the app through a command-line interface provided by the
inquirer
library.
Feel free to explore the code and customize it as you see fit. You can enhance the app by adding features like task editing, due dates, and priority levels.
Dependencies
Author
[Muneeb u Rehman]