npm i
if on linux, make tmanager executable
chmod +x tmanager
on windows with powershell
.\tmanager
Alter the file firebase-admin.json
with your firebase admin credentials.
npm test
tmanager -i '[{\"description\":\"Criar Login\",\"responsable\":\"bruno\",\"status\":\"done\"}, {\"description\":\"Criar Menu\",\"responsable\":\"bruno\",\"status\":\"doing\"}, {\"description\":\"Criar tela de perfil\",\"responsable\":\"bruno\",\"status\":\"todo\"}]'
or
tmanager --insert '[{\"description\":\"Criar Login\",\"responsable\":\"bruno\",\"status\":\"done\"}, {\"description\":\"Criar Menu\",\"responsable\":\"bruno\",\"status\":\"doing\"}, {\"description\":\"Criar tela de perfil\",\"responsable\":\"bruno\",\"status\":\"todo\"}]'
tmanager -f /path/to/file.json
or
tmanager --file /path/to/file.json
tmanager -s
or
tmanager --select
To filter data, use --filter
option with -s
or --select
option
tmanager -s --filter status=done
tmanager -c
or
tmanager --clear
tmanager -d
or
tmanager --daemon
curl -X POST \
http://localhost:3000/insert-tasks \
-H 'Content-Type: application/json' \
-d '[{"description":"Criar Login","responsable":"bruno","status":"done"}, {"description":"Criar Menu","responsable":"bruno","status":"doing"}, {"description":"Criar tela de perfil","responsable":"bruno","status":"todo"}]'
curl -X GET \
http://localhost:3000/get-tasks \
-H 'Content-Type: application/json'