"Create a complete project structure for a full-stack todo application using Python FastAPI for the backend and React for the frontend. Include these specifications:

- Backend folder with Python/FastAPI structure (main.py, requirements.txt, .gitignore for Python)
- Frontend folder prepared for React development (.gitignore for Node.js)
- Docs folder with README.md and API documentation templates
- Scripts folder with setup scripts for both Windows (.bat) and Unix systems (.sh)
- Root-level .gitignore and project README.md
- Basic configuration files for a CRUD todo application

Generate the terminal commands to create this entire structure."


create a Python virtual environment command for this project

write the pip command to install packages from requirements.txt

.\venv\Scripts\pip install -r requirements.txt


Add descriptive metadata to this FastAPI constructor including title, description, and version for a todo application.


How do I run this FastAPI application for development?

Create a Pydantic model for a todo item with an id that is an integer, a title that is a string, and a completed status that is a boolean defaulting to false.

Create a Python list called todo_db to store todo items, and add one sample todo item to demonstrate the structure.

Create a FastAPI POST endpoint at /todos that accepts a TodoItem in the request body, adds it to the todo_db list, and returns the created item

Create a FastAPI GET endpoint at /todos that returns all items from the todo_db list.

Create a GET endpoint at /todos/{todo_id} that finds and returns a single todo item by ID, or returns a 404 error if not found.


{
  "id": 2,
  "title": "Learn FastAPI",
  "completed": false
}