start-task.sh
docker build -t task-api .
docker run --name task-api \
-d -p 5100:5100 \
task-api
curl http://localhost:5100/tasks/
./test-fun.sh
# Add a task
./tasks add "some title" 21/08/2019
# List all tasks
./tasks list
# List tasks expiring today
# tasks list --expiring-today
# Toggle task done
./tasks done 3
Here we use pytest for unit testing framework.
pipenv install
pipenv shell
pytest -v -l test