Aplicación que gestiona tareas almacenadas en formato json.
- Instalación probada
- Funciones probadas
- Aplicación documentada
node.js, typescript, jest, JSON, bash,
- Descarga el repositorio:
gh repo clone pepesr-dev/taskTracker - Entra en la carpeta específica de la app:
cd taskTracker/taskTracker - Instalar dependencias:
npm install - Ejemplo de ejecución:
npm run task-cli -- add "Insertar nueva tarea"
# Adding a new task
npm run task-cli -- add "buy groceries"
# Output: Task added successfully (ID: 1)
# Updating and deleting tasks
npm run task-cli -- update 1 "Buy groceries and cook dinner"
npm run task-cli -- delete 1
# Marking a task as in progress or done
npm run task-cli -- mark-in-progress 1
npm run task-cli -- mark-done 1
# Listing all tasks
npm run task-cli -- list
# Listing tasks by status
npm run task-cli -- list done
npm run task-cli -- list todo
npm run task-cli -- list in-progressEsta app no acepta contribuciones.
Aplicación con interfaz para gestionar mis tareas.
- Ejecución mediante línea de comandos
- Aceptar acciones y entradas como argumento
node TaskTracker.js add "Iniciar proyecto" - Almacenar tareas en un JSON
- 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
- You can use any programming language to build this project. Lenguaje escogido: typeScript
- Use positional arguments in command line to accept user inputs.
TaskTracker.js update 1 "Iniciar proyecto TaskTracker.js" - 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.
Lista de comandos y su uso:
# 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-progressid: A unique identifier for the taskdescription: A short description of the taskstatus: The status of the task (todo,in-progress,done)createdAt: The date and time when the task was createdupdatedAt: The date and time when the task was last updated
Consejos:
- Instalar mi entorno de desarrollo(TSdocs + TS-jest)
- Crear el directorio para el proyecto y el controlador de versiones.
- Implementar funciones básicas y probarlas todas una a una.
- Test y debug
Para terminar:
- Asegurarme de que cada funcionalidad ha sido testeada.
- Limpiar código y agregar comentarios necesarios.
- Escribir un buen readme.md sobre como usar mi TaskTracker-CLI.