Automated Action 1ce4b4d932 Fix database configuration paths for development environment
- Updated database path in database.py to use project root path
- Updated alembic.ini to use correct database path
- Modified alembic env.py to directly use database URL from code

generated with BackendIM... (backend.im)
2025-05-13 14:35:05 +00:00
2025-05-13 13:09:47 +00:00

Simple Todo App

A simple todo application built with FastAPI and SQLite for managing todo items.

Features

  • Add new todo items
  • List all todo items
  • Mark todo items as complete
  • Delete todo items
  • Health check endpoint

Project Structure

simpletodoapp/
├── alembic/               # Database migration files
├── app/                   # Application code
│   ├── api/               # API endpoints
│   ├── database/          # Database connection and sessions
│   ├── models/            # SQLAlchemy models
│   ├── schemas/           # Pydantic schemas
│   └── storage/           # Database storage
├── main.py                # Entry point
├── alembic.ini            # Alembic configuration
└── requirements.txt       # Dependencies

Installation

  1. Clone the repository:
git clone <repository-url>
cd simpletodoapp
  1. Install dependencies:
pip install -r requirements.txt
  1. Run database migrations:
alembic upgrade head

Running the Application

Start the application with Uvicorn:

uvicorn main:app --reload

The API will be available at http://localhost:8000

API Endpoints

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

API Documentation

FastAPI automatically generates API documentation:

Description
Project: Simple Todo App
Readme 44 KiB
Languages
Python 94.4%
Mako 5.6%