{"id":17967170,"url":"https://github.com/hfmartinez/fastapi_app","last_synced_at":"2026-04-20T09:02:31.185Z","repository":{"id":259603767,"uuid":"878965851","full_name":"hfmartinez/FastAPI_app","owner":"hfmartinez","description":"This is a simple FastAPI application that implements a CRUD (Create, Read, Update, Delete) functionality for managing tasks. It uses MySQL as the database and is containerized using Docker.","archived":false,"fork":false,"pushed_at":"2025-01-31T03:26:32.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T09:29:16.267Z","etag":null,"topics":["docker","docker-compose","fastapi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hfmartinez.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}},"created_at":"2024-10-26T15:44:38.000Z","updated_at":"2025-01-31T03:26:35.000Z","dependencies_parsed_at":"2024-10-26T21:23:59.617Z","dependency_job_id":"82456da6-3340-45ba-9dc3-37c27dae49dd","html_url":"https://github.com/hfmartinez/FastAPI_app","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"6aa4c20fb504fb98517bd14763c27268df05bbda"},"previous_names":["hfmartinez/fastapi_app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfmartinez%2FFastAPI_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfmartinez%2FFastAPI_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfmartinez%2FFastAPI_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfmartinez%2FFastAPI_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hfmartinez","download_url":"https://codeload.github.com/hfmartinez/FastAPI_app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247081325,"owners_count":20880408,"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","docker-compose","fastapi"],"created_at":"2024-10-29T14:04:23.474Z","updated_at":"2026-04-20T09:02:31.152Z","avatar_url":"https://github.com/hfmartinez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Todo Application\n\nThis is a simple FastAPI application that implements a CRUD (Create, Read, Update, Delete) functionality for managing tasks. It uses MySQL as the database and is containerized using Docker.\n\n## Features\n\n- Create tasks with titles and optional descriptions.\n- Retrieve a list of tasks.\n- Built using FastAPI and SQLAlchemy.\n\n## Technologies Used\n\n- **FastAPI**: A modern, fast (high-performance) web framework for building APIs with Python 3.7+.\n- **SQLAlchemy**: SQL toolkit and Object-Relational Mapping (ORM) library for Python.\n- **MySQL**: A popular open-source relational database management system.\n- **Docker**: Container platform to package and run applications.\n\n## Prerequisites\n\n- Docker and Docker Compose installed on your machine.\n- Basic understanding of Python and RESTful APIs.\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/hfmartinez/FastAPI_app.git\ncd FastAPI_app\n```\n\n### Create a `.env` File\n\nCreate a `.env` file in the project root directory with the following content:\n\n```bash\nMYSQL_ROOT_PASSWORD=root_password\nMYSQL_DATABASE=todo_db\nMYSQL_USER=user\nMYSQL_PASSWORD=password\n```\n\n### Build and Run with Docker\n\nRun the following commands to build and start the containers:\n\n```bash\ndocker-compose up --build\n```\n\n### Accessing the Application\n\n- The FastAPI application will be available at `http://localhost:8000`.\n- You can access the interactive API documentation at `http://localhost:8000/docs`.\n\n### Stopping the Application\n\nTo stop the application, press `Ctrl+C` in the terminal where the containers are running, or use:\n\n```bash\ndocker-compose down\n```\n\n## Usage\n\n### Creating a Task\n\nTo create a new task, send a POST request to `/tasks/` with JSON body:\n\n```json\n{ \"title\": \"My Task\", \"description\": \"This is a sample task.\" }\n```\n\n### Retrieving Tasks\n\nTo retrieve all tasks, send a GET request to `/tasks/`.\n\n## Contributing\n\nFeel free to open issues or submit pull requests if you would like to contribute to this project!\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfmartinez%2Ffastapi_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhfmartinez%2Ffastapi_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfmartinez%2Ffastapi_app/lists"}