Giter Site home page Giter Site logo

tasktrackercli's Introduction

Task Tracker CLI

Build a CLI app to track your tasks and manage your to-do list.

Requirements The application should run from the command line, accept user actions and inputs as arguments, and store the tasks in a JSON file. The user should be able to:

Add, Update, and Delete tasks Mark a task as in progress or done List all tasks List all tasks that are done List all tasks that are not done List all tasks that are in progress Here are some constraints to guide the implementation:

You can use any programming language to build this project. Use positional arguments in command line to accept user inputs. Use a JSON file to store the tasks in the current directory. The JSON file should be created if it does not exist. Use the native file system module of your programming language to interact with the JSON file. Do not use any external libraries or frameworks to build this project. Ensure to handle errors and edge cases gracefully. Example The list of commands and their usage is given below:

Adding a new task

task-cli add "Buy groceries"

Output: Task added successfully (ID: 1)

Updating and deleting tasks

task-cli update 1 "Buy groceries and cook dinner" task-cli delete 1

Marking a task as in progress or done

task-cli mark-in-progress 1 task-cli mark-done 1

Listing all tasks

task-cli list

Listing tasks by status

task-cli list done task-cli list todo task-cli list in-progress Task Properties Each task should have the following properties:

id: A unique identifier for the task description: A short description of the task status: The status of the task (todo, in-progress, done) createdAt: The date and time when the task was created updatedAt: The date and time when the task was last updated Make sure to add these properties to the JSON file when adding a new task and update them when updating a task.

Getting Started Here are a few steps to help you get started with the Task Tracker CLI project:

Set Up Your Development Environment Choose a programming language you are comfortable with (e.g., Python, JavaScript, etc.). Ensure you have a code editor or IDE installed (e.g., VSCode, PyCharm). Project Initialization Create a new project directory for your Task Tracker CLI. Initialize a version control system (e.g., Git) to manage your project. Implementing Features Start by creating a basic CLI structure to handle user inputs. Implement each feature one by one, ensuring to test thoroughly before moving to the next e.g. implement adding task functionality first, listing next, then updating, marking as in progress, etc. Testing and Debugging Test each feature individually to ensure they work as expected. Look at the JSON file to verify that the tasks are being stored correctly. Debug any issues that arise during development. Finalizing the Project Ensure all features are implemented and tested. Clean up your code and add comments where necessary. Write a good readme file on how to use your Task Tracker CLI. By the end of this project, you will have developed a practical tool that can help you or others manage tasks efficiently. This project lays a solid foundation for more advanced programming projects and real-world applications.

tasktrackercli's People

Contributors

applesx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.