{"id":22589101,"url":"https://github.com/vidhi1290/fastapi--to-do-task-docker","last_synced_at":"2026-05-11T06:02:18.734Z","repository":{"id":246197870,"uuid":"820371948","full_name":"Vidhi1290/FastAPI--To-do-task-docker","owner":"Vidhi1290","description":"This project is a simple To-Do application built using FastAPI. It allows you to manage a list of tasks, each of which has a title, description, due date, priority, and completion status.","archived":false,"fork":false,"pushed_at":"2024-06-26T11:17:20.000Z","size":12702,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T18:33:14.933Z","etag":null,"topics":["docker","dockerfile","dockerimage","fastapi","python","task-manager","uvicorn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vidhi1290.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-26T10:38:07.000Z","updated_at":"2024-07-17T08:18:34.000Z","dependencies_parsed_at":"2024-06-26T14:09:08.005Z","dependency_job_id":null,"html_url":"https://github.com/Vidhi1290/FastAPI--To-do-task-docker","commit_stats":null,"previous_names":["vidhi1290/fastapi--to-do-task-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidhi1290%2FFastAPI--To-do-task-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidhi1290%2FFastAPI--To-do-task-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidhi1290%2FFastAPI--To-do-task-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidhi1290%2FFastAPI--To-do-task-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vidhi1290","download_url":"https://codeload.github.com/Vidhi1290/FastAPI--To-do-task-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246073940,"owners_count":20719578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerfile","dockerimage","fastapi","python","task-manager","uvicorn"],"created_at":"2024-12-08T08:12:17.181Z","updated_at":"2026-05-11T06:02:18.632Z","avatar_url":"https://github.com/Vidhi1290.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI To-Do Application\n\n## Overview\n\nThis project is a simple To-Do application built using FastAPI. It allows you to manage a list of tasks, each of which has a title, description, due date, priority, and completion status.\n\n## Features\n\nThe application supports the following endpoints:\n\n1. **GET /tasks** - Retrieve the list of all tasks.\n2. **POST /tasks** - Add a new task to the list. The request body should contain the task's title, description, due date, priority, and completion status.\n3. **GET /tasks/{task_id}** - Retrieve the details of a task by its ID.\n4. **PUT /tasks/{task_id}** - Update the details of a task by its ID. The request body should allow updating the title, description, due date, priority, and completion status.\n5. **DELETE /tasks/{task_id}** - Delete a task by its ID.\n6. **GET /tasks/due/{date}** - Retrieve the list of tasks due on a specific date.\n7. **GET /tasks/priority/{priority}** - Retrieve the list of tasks with a specific priority.\n\n## Requirements\n\n- Python 3.7+\n- FastAPI\n- Uvicorn\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/Vidhi1290/FastAPI--To-do-task-docker.git\n    cd FastAPI--To-do-task-docker\n    ```\n\n2. Create and activate a virtual environment:\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n    ```\n\n3. Install the dependencies:\n    ```sh\n    pip install fastapi uvicorn\n    ```\n\n## Running the Application\n\n1. Start the FastAPI application:\n    ```sh\n    uvicorn main:app --reload\n    ```\n\n2. Open your browser and navigate to `http://127.0.0.1:8000` to see the welcome message.\n\n3. To view and interact with the API documentation, go to `http://127.0.0.1:8000/docs`.\n\n## Dockerization\n\n1. Build the Docker image:\n    ```sh\n    docker build -t vidhi1290/todo-app .\n    ```\n\n2. Run the Docker container:\n    ```sh\n    docker run -d -p 8000:8000 vidhi1290/todo-app\n    ```\n\n3. The application will be available at `http://localhost:8000`.\n\n## Example\n\nTo add a task, you can send a POST request to `/tasks` with the following JSON body:\n```json\n{\n    \"id\": 1,\n    \"title\": \"Sample Task\",\n    \"description\": \"This is a sample task.\",\n    \"due_date\": \"2023-12-31\",\n    \"priority\": 1,\n    \"completed\": false\n}\n```\n\nTo retrieve all tasks, send a GET request to `/tasks`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidhi1290%2Ffastapi--to-do-task-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvidhi1290%2Ffastapi--to-do-task-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidhi1290%2Ffastapi--to-do-task-docker/lists"}