Coder Social home page Coder Social logo

todo-command-line-nodejs's Introduction

๐Ÿ’ป 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

todo-command-line-nodejs's People

Contributors

kevindev115 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.