{"id":28003128,"url":"https://github.com/rahulsamant37/fastapi_clean-architecture","last_synced_at":"2026-02-02T07:38:41.126Z","repository":{"id":291620293,"uuid":"978216101","full_name":"rahulsamant37/FASTAPI_clean-architecture","owner":"rahulsamant37","description":"A production-ready Todo API built with FastAPI following clean architecture principles and best practices.","archived":false,"fork":false,"pushed_at":"2025-05-09T15:00:30.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T00:37:32.875Z","etag":null,"topics":["boilerplate-template","continuous-integration","docker","docker-compose","fastapi","fastapi-crud","fastapi-template","help-others","unittest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rahulsamant37.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,"zenodo":null}},"created_at":"2025-05-05T16:39:58.000Z","updated_at":"2025-06-05T07:31:14.000Z","dependencies_parsed_at":"2025-05-05T18:09:44.071Z","dependency_job_id":null,"html_url":"https://github.com/rahulsamant37/FASTAPI_clean-architecture","commit_stats":null,"previous_names":["rahulsamant37/fastapi_clean-architecture"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahulsamant37/FASTAPI_clean-architecture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulsamant37%2FFASTAPI_clean-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulsamant37%2FFASTAPI_clean-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulsamant37%2FFASTAPI_clean-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulsamant37%2FFASTAPI_clean-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahulsamant37","download_url":"https://codeload.github.com/rahulsamant37/FASTAPI_clean-architecture/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahulsamant37%2FFASTAPI_clean-architecture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T06:37:10.400Z","status":"ssl_error","status_checked_at":"2026-02-02T06:37:09.383Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boilerplate-template","continuous-integration","docker","docker-compose","fastapi","fastapi-crud","fastapi-template","help-others","unittest"],"created_at":"2025-05-09T01:50:30.934Z","updated_at":"2026-02-02T07:38:41.110Z","avatar_url":"https://github.com/rahulsamant37.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Clean Architecture Todo API\n\nA production-ready Todo API built with FastAPI following clean architecture principles and best practices.\n\n## 🏗️ Architecture\n\nThis project follows clean architecture principles, with clear separation of:\n\n- **Entities** - Core business objects (`User`, `Todo`)\n- **Use Cases** - Application business rules in services\n- **Controllers** - HTTP request handlers\n- **Infrastructure** - Database, authentication, and external interfaces\n\n## 🔑 Key Features\n\n- Complete CRUD operations for Todos\n- User authentication with JWT\n- Password hashing with bcrypt\n- Rate limiting\n- PostgreSQL database with SQLAlchemy ORM\n- Comprehensive test suite\n- Docker support\n- Clean code structure following best practices\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Python 3.12+\n- Docker and Docker Compose (optional)\n- PostgreSQL (if running without Docker)\n\n### Running with Docker\n\n```bash\n# Start the application and database\ndocker-compose up\n```\n\nThe API will be available at `http://localhost:8000`\n\n### Local Development Setup\n\n```bash\n# Create a virtual environment\npython -m venv venv\nsource venv/bin/activate  # Linux/macOS\nvenv\\Scripts\\activate     # Windows\n\n# Install dependencies\npip install -r requirements-dev.txt\n\n# Configure environment variables\ncp .env.example .env     # Update with your values\n\n# Run the application\nuvicorn src.main:app --reload\n```\n\n## 📝 API Documentation\n\nOnce running, view the interactive API documentation at:\n\n- Swagger UI: `http://localhost:8000/docs`\n- ReDoc: `http://localhost:8000/redoc`\n\n### Key Endpoints\n\n- `POST /auth/` - Register new user\n- `POST /auth/token` - Login and get access token\n- `GET /todos/` - List all todos\n- `POST /todos/` - Create new todo\n- `GET /todos/{id}` - Get single todo\n- `PUT /todos/{id}` - Update todo\n- `DELETE /todos/{id}` - Delete todo\n- `PUT /todos/{id}/complete` - Mark todo as complete\n\n## 🧪 Testing\n\n```bash\n# Run all tests\npytest\n\n# Run with coverage\npytest --cov=src\n```\n\n## 🛠️ Project Structure\n\n```\nsrc/\n├── auth/           # Authentication logic\n├── database/       # Database configuration\n├── entities/       # Domain entities\n├── todos/          # Todo feature module\n├── users/          # User feature module\n├── exceptions.py   # Custom exceptions\n├── logging.py      # Logging configuration\n└── main.py         # Application entry point\n```\n\n## 🔒 Security Features\n\n- JWT authentication\n- Password hashing with bcrypt\n- Rate limiting on registration endpoint\n- CORS protection\n- Input validation with Pydantic\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a new branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulsamant37%2Ffastapi_clean-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahulsamant37%2Ffastapi_clean-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahulsamant37%2Ffastapi_clean-architecture/lists"}