Skip to content

KevinDev115/todo-command-line-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 Todo Command Line

This is a command line todo CRUD created with the NodeJS runtime environment, in order to learn the tools that NodeJs offers.

⚙ Installation

  • Clone the repository
$ git clone https://github.com/KevinDev115/nodejs-todo-command-line.git
  • Install packages
$ npm install

Commands

To see the command list you must execute the command $ node app --help within the application:

Command Help

If you want to know the parameters that a command has, you just have to put the --help after each command like this:

Command Help Params

Command List

This command show a table with th list todo, just by running the command node app list or node app listar.

Params

  • -i, --id: This parameter serves to only bring a task according to its id.

Result:

Command List

Result param id:

Command List

Command Create

This command is used to create a new todo, just by running the command node app create or node app crear with their respective parameters.

params

  • -d, --description: This is description of the todo.

result:

Command Create

Command Update

This command updates a todo according to its id by executing the command node app update or node app actualizar with their respective parameters.

params

  • -i, --id: This is the ID of the todo.
  • -d, --description: This is the description of the todo to be updated.
  • -c, --completed: This parameter indicates if the task has already been updated or if it is still pending authorization.

result: Command Update

In the list:

Command Update

If you want to complete a todo, just pass the parameter -c just like that or with the value of true

result:

Command Update

In the list:

Command Update

Command Delete

This command delete a todo according to your id.

params

  • -i, --id: This is the ID of the todo.

result:

Command Update

packages

About

This is a command line CRUD using nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published