{"id":29503812,"url":"https://github.com/ariamehr-m/fastapi-backend-course","last_synced_at":"2026-05-07T13:40:33.387Z","repository":{"id":304669229,"uuid":"1019499571","full_name":"Ariamehr-M/FastAPI-Backend-Course","owner":"Ariamehr-M","description":"A FastAPI-based backend project featuring a blog application, including database integration and environment management for rapid backend development and learning.","archived":false,"fork":false,"pushed_at":"2025-07-14T14:02:48.000Z","size":19550,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T17:31:33.142Z","etag":null,"topics":["backend","backend-api","backend-template","fastapi","fastapi-course","fastapi-crud","fastapi-framework","fastapi-sqlalchemy","fastapi-template","fastapi-tutorials","python","python-fastapi","sqlite","uvicorn"],"latest_commit_sha":null,"homepage":"https://fastapi-backend-course-ariamehr.onrender.com/docs","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/Ariamehr-M.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":"2025-07-14T12:23:10.000Z","updated_at":"2025-07-14T15:31:20.000Z","dependencies_parsed_at":"2025-07-14T17:42:08.665Z","dependency_job_id":null,"html_url":"https://github.com/Ariamehr-M/FastAPI-Backend-Course","commit_stats":null,"previous_names":["ariamehr-m/fastapi-backend-course"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Ariamehr-M/FastAPI-Backend-Course","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ariamehr-M%2FFastAPI-Backend-Course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ariamehr-M%2FFastAPI-Backend-Course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ariamehr-M%2FFastAPI-Backend-Course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ariamehr-M%2FFastAPI-Backend-Course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ariamehr-M","download_url":"https://codeload.github.com/Ariamehr-M/FastAPI-Backend-Course/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ariamehr-M%2FFastAPI-Backend-Course/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265466216,"owners_count":23770507,"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":["backend","backend-api","backend-template","fastapi","fastapi-course","fastapi-crud","fastapi-framework","fastapi-sqlalchemy","fastapi-template","fastapi-tutorials","python","python-fastapi","sqlite","uvicorn"],"created_at":"2025-07-15T23:01:29.543Z","updated_at":"2026-05-07T13:40:33.381Z","avatar_url":"https://github.com/Ariamehr-M.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FASTAPI-BACKEND-COURSE\n\n*Build Fast, Scale Smart, Lead the Future*\n\n\n\n![Last Commit](https://img.shields.io/github/last-commit/your-username/your-repo-name?label=last%20commit\u0026color=gray)\n![Commit Date](https://img.shields.io/badge/last%20monday-blue)\n![Python](https://img.shields.io/badge/python-98.4%25-blue)\n![Languages](https://img.shields.io/badge/languages-7-gray)\n\n--------------------------------------------------------------------------------------------------\n\n*Built with the tools and technologies:*\n\n![Markdown](https://img.shields.io/badge/Markdown-000000?style=for-the-badge\u0026logo=markdown\u0026logoColor=white)\n![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-e94e1b?style=for-the-badge\u0026logo=sqlalchemy\u0026logoColor=white)\n![FastAPI](https://img.shields.io/badge/FastAPI-05998B?style=for-the-badge\u0026logo=fastapi\u0026logoColor=white)\n![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge\u0026logo=python\u0026logoColor=white)\n![BAT](https://img.shields.io/badge/bat-3A3A3A?style=for-the-badge\u0026logo=windows-terminal\u0026logoColor=white)\n\n\n\n--------------------------------------------------------------------------------------------------\n\n\nThis repository contains the complete code for the [FastAPI - A Python Framework | Full Course](https://www.youtube.com/watch?v=7t2alSnE2-I\u0026t=373s) tutorial on YouTube. The project demonstrates how to build a robust backend API using FastAPI, covering everything from basic setup to authentication, database integration, and deployment.\n\n## 📚 About the Project\n\nThis project is a hands-on implementation of a blog API using FastAPI. It covers essential backend development concepts such as routing, request/response handling, database models, authentication with JWT, and more. The codebase is structured for clarity and scalability, making it a great reference for both beginners and intermediate Python backend developers.\n\n## 🎥 Tutorial Reference\n\n- **YouTube Video:** [FastAPI - A Python Framework | Full Course](https://www.youtube.com/watch?v=7t2alSnE2-I\u0026t=373s)\n- **Channel:** Bitfumes\n\n## 🗂️ Codebase Structure\n\n![Project Structure](CodeBase.png)\n\u003c!-- Upload your screenshot as 'blog_structure.png' in the repo root or update the path accordingly --\u003e\n\n### How the Codebase Works\n\nThis project follows a modular and scalable structure, making it easy to maintain and extend. Here’s how the main components interact:\n\n- **main.py**  \n  The entry point of the application. It creates the FastAPI app instance and includes routers for different parts of the API (such as blogs and users).\n\n- **routers/**  \n  Contains route definitions for different resources.  \n  - `routers/blog.py`: Defines the API endpoints for blog operations (CRUD).  \n  - `routers/user.py`: Defines the API endpoints for user operations.  \n  - `routers/authentication.py`: Handles authentication-related endpoints (e.g., login).\n\n- **repository/**  \n  Contains the business logic and database operations.  \n  - `repository/blog.py`: Implements the core logic for blog-related actions (e.g., create, read, update, delete blogs).  \n  - `repository/user.py`: Implements the logic for user-related actions.\n\n- **models.py**  \n  Defines the SQLAlchemy models for the database tables.\n\n- **schemas.py**  \n  Contains Pydantic models for request and response validation.\n\n- **database.py**  \n  Sets up the database connection and session.\n\n- **hashing.py**  \n  Handles password hashing and verification.\n\n- **JWTtoken.py**  \n  Manages JWT creation for authentication.\n\n- **oauth2.py**  \n  Handles OAuth2 authentication logic.\n\nThis separation of concerns ensures that:\n- **Routes** (in `routers/`) only handle HTTP request/response and delegate business logic.\n- **Business logic** (in `repository/`) is reusable and testable.\n- **Models** and **schemas** keep data validation and database structure organized.\n\n**Example flow:**  \nA request to a blog endpoint is routed from `main.py` to `routers/blog.py`, which then calls the appropriate function in `repository/blog.py` to interact with the database and return a response.\n\n## 🧑‍💻 API Overview\n\nThe project implements a RESTful API for a blog platform, including:\n\n- **Authentication:** JWT-based login\n- **Blogs:** CRUD operations (create, read, update, delete)\n- **Users:** User registration and retrieval\n\n### Example: Swagger UI\n\n![Swagger UI Screenshot](Swagger.png)\n\u003c!-- Upload your screenshot as 'swagger.png' in the repo root or update the path accordingly --\u003e\n\n## 🚀 Getting Started\n\n1. **Clone the repository:**\n   ```sh\n   git clone https://github.com/\u003cyour-username\u003e/FastAPI-Backend-Course.git\n   cd FastAPI-Backend-Course\n   ```\n\n2. **Create and activate a virtual environment:**\n   ```sh\n   python -m venv blog-env\n   # On Windows:\n   blog-env\\Scripts\\activate\n   # On macOS/Linux:\n   source blog-env/bin/activate\n   ```\n\n3. **Install dependencies:**\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n4. **Run the FastAPI server:**\n   ```sh\n   uvicorn blog.main:app --reload\n   ```\n\n5. **Access the API docs:**\n   - Open [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) in your browser.\n\n## 📝 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## 🙏 Credits\n\n- Tutorial by Bitfumes on [YouTube](https://www.youtube.com/watch?v=7t2alSnE2-I\u0026t=373s)\n- Built with [FastAPI](https://fastapi.tiangolo.com/)\n\n---\n\n\u003e **Feel free to fork, star, and contribute to this project!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariamehr-m%2Ffastapi-backend-course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariamehr-m%2Ffastapi-backend-course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariamehr-m%2Ffastapi-backend-course/lists"}