Skip to content

Oclemy/fastui-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastUI ToDo App

A pure-Python todo application built with FastUI and FastAPI. Manage tasks with add, toggle, and delete actions, filter by status, and enjoy a reactive React-powered UI — all without writing any JavaScript. Ideal for learning FastUI or as a starter template.

Live Demo

Run on Codely Edit on Codely View Demo Deploy

1 click Deploy

Deploy on Railway

Dependencies for FastUI ToDo App Hosting

  • Python 3.10+
  • FastAPI (web framework)
  • FastUI >= 0.9.0 (declarative UI components via Pydantic)
  • Uvicorn (ASGI server)
  • python-multipart (form data parsing)

mplementation Details

The entire app is a single app.py. FastUI components are Pydantic models returned as JSON — the prebuilt React SPA fetches /api/ routes and renders them automatically:

c.ModelForm(
    model=TodoForm,
    submit_url="/api/add",
    display_mode="inline",
)

Forms, tables, navigation, and events are all declared server-side in Python. The catch-all route serves the FastUI React shell:

@app.get("/{path:path}")
def spa_root() -> HTMLResponse:
    return HTMLResponse(prebuilt_html(title="FastUI Todo"))

About

Easy to start with FastUI framework Template for a ToDo app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages