My second app with Node.js. It's a todo list that works in your command prompt and generates a .json file in the db folder that works as a database. This app uses Colors.js, Inquirer and uuid.
After downloading or cloning this repository, make sure to run npm install
to reconstruct the node_modules folder. Then, to start using the app run the next command in your terminal:
npm start
It will appear the following menu:
Use arrow keys or the options's number to move though them, then select what you'd like to do by pressing ENTER.
- Create task: After you select this option, make sure to type the description of the task you want to create.
- View tasks list: Here you'll able to see all the tasks you've created and their status (if they're completed or not)
- View completed tasks: Here you'll be able to see a list of just completed tasks plus the dat they were marked as completed.
- View pending tasks: Here you'll be able to see a list of the pending tasks
- Complete task(s): Here is where you can select the task or tasks you want to complete. In the following image you have the instructions on how to select those tasks
- Delete task: As its name states, with this option you can delete any task you want and it'll also be deleted in the database.
Press Y
if you want to delete your taks or n
if not.
Now if you go to the main menu and select the second option (View tasks's list), it won't appear the task you deleted.
- Exit: Closes the app.