Automated Action 980c575291 Finish up the Todo application
- Fixed database connection path to match BackendIM requirements
- Implemented filter by completion status in the todos endpoint
- Fixed updated_at timestamp to automatically update
- Updated alembic.ini with the correct database URL

generated with BackendIM... (backend.im)
2025-05-13 06:05:28 +00:00
2025-05-13 06:05:28 +00:00
2025-05-13 06:05:28 +00:00
2025-05-13 06:05:28 +00:00
2025-05-13 05:51:01 +00:00
2025-05-13 05:51:01 +00:00

Todo Application

This is a simple Todo application built with FastAPI and SQLite.

Features

  • Create, read, update, and delete todos
  • Filter todos by completion status
  • Pagination support

API Endpoints

  • GET /todos: List all todos
  • POST /todos: Create a new todo
  • GET /todos/{todo_id}: Get a specific todo
  • PUT /todos/{todo_id}: Update a todo
  • DELETE /todos/{todo_id}: Delete a todo
  • GET /health: Health check endpoint

Running the Application

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Apply migrations:

    alembic upgrade head
    
  3. Run the application:

    uvicorn main:app --reload
    
  4. Access the API documentation:

Project Structure

  • app/: Main application package
    • api/: API endpoints
    • crud/: Database CRUD operations
    • db/: Database configuration
    • models/: SQLAlchemy models
    • schemas/: Pydantic schemas
  • alembic/: Database migrations
  • main.py: Application entry point
  • requirements.txt: Project dependencies
Description
Project: Simple Todo Application
Readme 42 KiB
Languages
Python 94.7%
Mako 5.3%