Tirsvad 5b1f3b76fa
TirSystem/git-workflows: Release / release (push) Skipped
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Successful in 13s
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Successful in 6s
TirSystem/git-workflows: Publish accepted milestones / publish (push) Successful in 22s
TirSystem/git-workflows: Validate / validate (push) Successful in 19s
TirSystem/git-workflows: OpenGrep / opengrep (push) Successful in 1m9s
Merge pull request 'Milestone 6: Wiki, reflection and release checks' (#50) from mil-006-finish-and-wiki into main
2026-11-20 12:57:19 +01:00
2026-11-20 19:55:52 +08:00
2026-11-20 19:01:28 +08:00
2026-11-20 11:41:31 +01:00

🚀 Todo List

A Trello-style Kanban todo list built with the Python standard library, SQLite and plain JavaScript, with no runtime dependencies. It is Day 89 of the 100 Days of Code bootcamp, for course participants who want to compare solutions and for visitors who look for ideas.

📚 Table of Contents

🧭 Overview

The board has five lists (Backlog, To Do, In Progress, Review, Done) that hold cards. The project is built in six steps, and each step has a screenshot below and a wiki page in English, Danish and Bahasa Malaysia that explains what it taught.

Folder What it is for
src/todo_list/ The program: domain, application, infrastructure and presentation layers; constants.py holds every constant
tests/ unit, integration and e2e tests, run with pytest
docs/ Project documents, wiki pages (docs/wiki/) and screenshots (docs/screenshots/)
tools/screenshots/ The Docker container that opens the app in a headless browser and takes the screenshots
scripts/ Helper scripts, such as the opengrep scan

📋 Requirements

  • Python 3.13 or newer, to run the program. The program has no runtime dependencies.
  • pip and venv, which come with Python, to create the local environment.
  • pytest, pytest-cov, ruff and mypy for development; they are installed by the dev group below.
  • Docker, only to take screenshots and run the browser tests.
  • Doxygen, only to build the source documentation.
  • opengrep, only to scan the code before a push.

🛠️ Setup

Create a local virtual environment named .venv in the repository root, then upgrade pip.

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

On Linux or macOS the commands are:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

To leave the environment, run deactivate. The folder .venv/ is ignored by git.

▶️ Run

With the environment active:

python -m todo_list

Then open http://127.0.0.1:8000/ in a browser. Stop the server with Ctrl+C. The host and port are in src/todo_list/constants.py.

The page uses a JSON API under /api/ (board, lists, cards, card details and comments); the routes are listed in the wiki, steps 3 to 5.

📸 Screenshots

Step What it shows
1. Project foundation The first page with the five empty lists Step 1
2. Domain and storage The board read from SQLite with sample cards Step 2
3. JSON API and editing A new list and a card form, added through the page Step 3
4. Kanban board and drag and drop A card dragged from To Do to Review Step 4
5. Card details The card detail dialog Step 5
6. Wrap-up and reflection The finished board Step 6

Screenshots are made in a Docker container, never on the desktop:

docker build -t todo-list-shots tools/screenshots
docker run --rm -v "${PWD}:/work" todo-list-shots step-01

🧪 Tests

python -m pytest
python -m ruff check src tests
python -m mypy src tests
python scripts/run_opengrep.py
doxygen Doxyfile

pytest also prints the coverage and fails below 90 percent. Run the opengrep scan before every push.

The browser tests in tests/e2e/ run only in the Docker container, never on the desktop. They write their result to results/e2e.xml:

docker build -t todo-list-shots tools/screenshots
docker run --rm -v "${PWD}:/work" -w /work --entrypoint python todo-list-shots -m pytest -o addopts="" -o pythonpath="src tests" --junitxml=results/e2e.xml tests/e2e

💭 Reflection

  • Approach. Plan first, then six small steps; each step is one branch, one review and one pull request, with a screenshot and a wiki page.
  • Easy. The domain rules and SQLite: the layers keep the rules free of HTTP and SQL, so most tests run in milliseconds.
  • Hard. Drag and drop (the drop position comes from the pointer, and the test needs a real browser) and due dates (a forgiving parser accepts shapes you do not want).
  • Biggest learning. A framework is a choice with a cost. The standard library was enough, so there are no runtime dependencies and every layer is visible.
  • Differently next time. Start the browser tests earlier and settle the stack before the first milestone.

The longer version is in the wiki, step 6.

📄 License

GNU Affero General Public License v3.0, see LICENSE.

📎 Appendix: Project documents

Document What it tells you
Business Case Why the project exists, its scope and success criteria
Stakeholder Analysis Who is involved; the stakeholder IDs used for owners and reviewers
Project Plan The gateways and their schedule
Milestones One document per gateway: Go/No-Go criteria and tasks
Artifact registry Where each artifact type lives, the next version, the PO language and domain
Traceability matrix How the artifacts link and when each was last reviewed
Framework README The framework this project uses
Framework changelog What changed in each framework release

S
Description
Trello-style Kanban todo list in Python 3.13 with the standard library, SQLite and plain JavaScript: boards, lists, cards, drag and drop. Day 89 of 100 Days of Code, with tests, docs and a three-language wiki.
Readme AGPL-3.0
664 KiB
1 Stars 1 Watchers 0 Forks
Languages
Python 88.5%
JavaScript 8.2%
CSS 2.9%
Dockerfile 0.4%