Despliega 1000+ apps y plantillas en un clic
Recetas listas para Wasmer.
Recetas listas para Wasmer.
A FastAPI todo app with SQLAlchemy 2, an HTML form and an interactive JSON API, ready for SQLite or MySQL.

A FastAPI todo app with SQLAlchemy 2. It has an HTML page with a form and a JSON API with interactive docs at /docs.
After its catalog entry is registered, deploy this template from the Wasmer templates page. This source change does not register the catalog entry.
main.py: the Todo model, the HTML page and the /api/todos endpoints.uvicorn main:app._shared/starter-ui/ at the repository root.Without configuration the app uses SQLite in /tmp, which is fine for trying it but is not shared between instances or kept across deploys. Attach a MySQL database to the app (its DB_HOST, DB_PORT, DB_NAME, DB_USERNAME and DB_PASSWORD variables are picked up automatically) or set DATABASE_URL to any SQLAlchemy URL.
uv sync
uv run uvicorn main:app --reload
Then open http://localhost:8000/.
Run the tests with uv run pytest.