{"id":18686642,"url":"https://github.com/danijeldragicevic/task-manager","last_synced_at":"2026-05-05T11:34:33.728Z","repository":{"id":260074041,"uuid":"880198122","full_name":"danijeldragicevic/task-manager","owner":"danijeldragicevic","description":"Dockerized Flask (Python) app with basic CRUD operations for MongoDB, managed with Docker Compose.","archived":false,"fork":false,"pushed_at":"2025-05-19T05:26:03.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T03:41:07.735Z","etag":null,"topics":["docker-compose","dockerfile","flask-application","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danijeldragicevic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-10-29T09:51:20.000Z","updated_at":"2025-01-20T10:52:59.000Z","dependencies_parsed_at":"2024-10-30T09:25:51.742Z","dependency_job_id":"24e1ae14-78fd-4d89-9550-4df097788f75","html_url":"https://github.com/danijeldragicevic/task-manager","commit_stats":null,"previous_names":["danijeldragicevic/flask-task-manager","danijeldragicevic/task-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danijeldragicevic/task-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Ftask-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Ftask-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Ftask-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Ftask-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danijeldragicevic","download_url":"https://codeload.github.com/danijeldragicevic/task-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danijeldragicevic%2Ftask-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266808543,"owners_count":23987450,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-compose","dockerfile","flask-application","mongodb"],"created_at":"2024-11-07T10:28:24.700Z","updated_at":"2026-05-05T11:34:33.696Z","avatar_url":"https://github.com/danijeldragicevic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Task Manager \nSimple Flask (Python) app with basic CRUD operations for MongoDB, managed with Docker Compose.\n\n# Technology\n- Python: 3.10.15\n- Flask: 2.3.2\n- Pymongo: 4.10.1\n- Docker: 27.2.0\n- Github action to check the code quality\n\n# To create and run the containers\nPlease make sure you have the Docker installed on your machine.\n```\n$ docker --version\nDocker version 27.2.0, build 3ab4256\n```\n\u003cbr\u003e\n\nNavigate to the root directory of the project and execute following command:\n```\ndocker-compose up\n```\n\u003cbr\u003e\n\nThis will build images, create network and the volume and run the containers, as it is described in the `docker-compose.yaml` file:\n```\n$ docker images \nREPOSITORY     TAG       IMAGE ID       CREATED         SIZE\ntask-manager   latest    bc621aa9efbd   6 minutes ago   140MB\nmongo          latest    77c59b638412   5 days ago      855MB\n```\n```\n$ docker network ls\nNETWORK ID     NAME                   DRIVER    SCOPE\n5dba91cbd731   bridge                 bridge    local\n7911564b26e6   host                   host      local\nce82d2e870de   none                   null      local\n8d060ed9f258   task_manager_network   bridge    local\n```\n```\n$ docker volume ls\nDRIVER    VOLUME NAME\nlocal     task-manager-data\n```\n```\n$ docker ps\nCONTAINER ID   IMAGE          COMMAND                  CREATED         STATUS         PORTS                    NAMES\n9685d50f1995   task-manager   \"python main.py\"         7 minutes ago   Up 7 minutes   0.0.0.0:8000-\u003e8000/tcp   task_manager\nd4e8fd1ca86c   mongo:latest   \"docker-entrypoint.s…\"   7 minutes ago   Up 7 minutes   27017/tcp                mongodb\n```\nWhen both containers are up and running, you can access the Flask app on `http://localhost:8000/`.\n\n# Exposed endpoints\nFollowing endpoints will be exposed:\n\n| Methods | Urls         | Action                  |\n|---------|--------------|-------------------------|\n| POST    | /tasks       | Creates task            |\n| GET     | /tasks       | Get all tasks           |\n| GET     | /tasks/{id}  | Get task by it's id     |\n| PUT     | /tasks/{id}  | Update task by it's id  |\n| DELETE  | /tasks/{id}  | Delete task by it's id  |\n\n# Examples\nCreate a task:\n```\n$ curl -X POST http://localhost:8000/tasks -H \"Content-Type: application/json\" -d'{\"title\":\"New Task\", \"description\":\"This is a new task description\"}'\n```\nResponse returned:\n```\n{\n  \"message\": \"Task created\",\n  \"task\": {\n    \"description\": \"This is a new task description\",\n    \"id\": \"4a4abc57-ed19-46d0-b9df-93afb7ccb7d7\",\n    \"title\": \"New Task\"\n  }\n}\n```\n\u003cbr\u003e\n\nGet all tasks:\n```\n$ curl -X GET http://localhost:8000/tasks\n```\nResponse returned:\n```\n[\n  {\n    \"description\": \"This is a new task description\",\n    \"id\": \"4a4abc57-ed19-46d0-b9df-93afb7ccb7d7\",\n    \"title\": \"New Task\"\n  }\n]\n```\n\u003cbr\u003e\n\nGet task by it's id:\n```\n$ curl -X GET http://localhost:8000/tasks/4a4abc57-ed19-46d0-b9df-93afb7ccb7d7\n```\nResponse returned:\n```\n{\n  \"description\": \"This is a new task description\",\n  \"id\": \"4a4abc57-ed19-46d0-b9df-93afb7ccb7d7\",\n  \"title\": \"New Task\"\n}\n```\n\u003cbr\u003e\n\nUpdate task by it's id:\n```\n$ curl -X PUT http://localhost:8000/tasks/4a4abc57-ed19-46d0-b9df-93afb7ccb7d7 -H \"Content-Type: application/json\" -d'{\"title\":\"Updated Task\", \"description\":\"This is an updated task description\"}'\n```\nResponse returned:\n```\n{\n  \"message\": \"Task updated\"\n}\n```\n\u003cbr\u003e\n\nDelete task by it's id:\n```\n$ curl -X DELETE http://localhost:8000/tasks/4a4abc57-ed19-46d0-b9df-93afb7ccb7d7\n```\nResponse returned:\n```\n{\n  \"message\": \"Task deleted\"\n}\n```\n# Clean up the environment\nTo clean up everything, execute following command:\n```\ndocker-compose down -v\n[+] Running 4/4\n ✔ Container task_manager        Removed      0.6s \n ✔ Container mongodb             Removed      0.2s \n ✔ Volume task-manager-data      Removed      0.0s \n ✔ Network task_manager_network  Removed      0.0s      \n```\n\n# Licence\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanijeldragicevic%2Ftask-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanijeldragicevic%2Ftask-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanijeldragicevic%2Ftask-manager/lists"}