Automated Action f58b91f04c Create simple todo app with FastAPI and SQLite
- Set up project structure with FastAPI and SQLite
- Implement Todo model and CRUD operations
- Add health endpoint for application monitoring
- Configure Alembic for database migrations
- Add comprehensive documentation

generated with BackendIM... (backend.im)
2025-05-13 00:25:36 +00:00

48 lines
919 B
Markdown

# Simple Todo App
This is a FastAPI application that implements a simple Todo API.
## Features
- Create, read, update, and delete todo items
- Health check endpoint
- SQLite database for data storage
- FastAPI automatic documentation
## Getting Started
### Prerequisites
- Python 3.7+
- Pip package manager
### Installation
1. Clone the repository
2. Install dependencies:
```bash
pip install -r requirements.txt
```
### Running the Application
```bash
uvicorn main:app --reload
```
The server will start at http://localhost:8000
### API Documentation
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
## API Endpoints
- `GET /api/todos`: List all todos
- `POST /api/todos`: Create a new todo
- `GET /api/todos/{todo_id}`: Get a specific todo
- `PUT /api/todos/{todo_id}`: Update a todo
- `DELETE /api/todos/{todo_id}`: Delete a todo
- `GET /health`: Check application health