Skip to content

This is a to-do app practice from `GeekTime` cources written by `ZhengYe`.

Notifications You must be signed in to change notification settings

AlexChingEraser/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is a to-do app practice from GeekTime cources written by ZhengYe.

stage1 - Base

add todo item

`todo add <item>`

[index]. <item>

Item <itemIndex> added

done todo item

`todo done <itemIndex>`

Item <itemIndex> done

list undoned todo items

`todo list`

[index]. <item>
...

Total: 2 items

list all todo items

`todo list --all`

[index]. <item>
[index]. [done] <item>
...

Total: 3 items, 1 item done

stage2 - Multi-Users

some rules:

  • when user not login, todo can not use;
  • default: root/root, alex/alex
  • config file: ~/.todo-config. the ~/.todo-config content like :
root:root
alex:alex
cooper:cooper

login

todo login -u user
Password: 

Login success!

logout

todo logout

Louout success!

stage3 - Export/Import

export todo lists

todo export > <your/path/todolist.ext>

import todo lists

todo import -f <your/path/todolist.ext>

Problem

  • data file should not upload
  • unit test: commander function test, file read/write sync, but not use astnc/promise/callback
  • TDD use
  • work flow: win -> git <- linux -> docker image <------ CI
  • Dockefile, git commands, shell script
  • handle error
  • node path route: chaos

About

This is a to-do app practice from `GeekTime` cources written by `ZhengYe`.

Resources

Stars

Watchers

Forks

Packages

No packages published