Skip to content

Add FastAPI todobackend.com app example. - #94

Merged
dom96 merged 2 commits into
mainfrom
dominik/fastapi-todo-app
Aug 24, 2026
Merged

Add FastAPI todobackend.com app example.#94
dom96 merged 2 commits into
mainfrom
dominik/fastapi-todo-app

Conversation

@dom96

@dom96 dom96 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Implements a todobackend.com-compatible FastAPI todo application. This has the advantage that the example can focus on the backend.

The usage relies on https://todobackend.com/client/index.html?http://localhost:8787/todos which works pretty well:

Screenshot 2026-08-21 at 16 48 55

Test Plan

Great thing about todobackend.com is that it has a built-in test suite:

Screenshot 2026-08-21 at 16 49 35

This PR also adds tests into test_examples.py.

@dom96
dom96 requested review from hoodmane and ryanking13 August 21, 2026 15:50
@dom96
dom96 force-pushed the dominik/fastapi-todo-app branch 2 times, most recently from 4c0619a to 53499c4 Compare August 21, 2026 16:16
Comment thread fastapi-todo/README.md
@@ -0,0 +1,37 @@
# FastAPI Todo Backend

A Python FastAPI implementation of the [Todo-Backend](https://todobackend.com) spec, running on Cloudflare Workers with D1 for storage.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Does this website have enough credibility / awareness that we can rely on? If so, do you think we should update all our examples to use the same backend to provide consistent examples?

@dom96 dom96 Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be someone's hobby project, but it has been around for a while, so yeah, I think we can rely on it.

I did suggest doing this in #89 (review). I think it would be nice to make these examples as simple as possible and make them easily comparable by them consistently implementing the todo-backend spec.

Comment thread fastapi-todo/src/worker.py Outdated
Comment thread fastapi-todo/src/worker.py
@dom96
dom96 force-pushed the dominik/fastapi-todo-app branch from 53499c4 to a0647dd Compare August 24, 2026 10:30
@dom96
dom96 force-pushed the dominik/fastapi-todo-app branch from a0647dd to 74af689 Compare August 24, 2026 10:35
@dom96
dom96 merged commit 939a9ef into main Aug 24, 2026
7 checks passed
@hoodmane
hoodmane deleted the dominik/fastapi-todo-app branch August 25, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants