- Notifications
You must be signed in to change notification settings - Fork0
This repository is dedicated to storing the code developed during the "FastAPI - The Complete Course 2025 (Beginner + Advanced)" course on Udemy.
License
ashok14k/FastAPI-The-Complete-Course-2025-Beginner-Advanced-Udemy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#FastAPI - The Complete Course 2025 (Beginner + Advanced) 🚀Welcome to the**FastAPI - The Complete Course 2025 (Beginner + Advanced)** repository! This space is dedicated to the code developed throughout the course offered on Udemy. Whether you're just starting or looking to refine your skills, this repository has you covered.##Table of Contents-[Course Overview](#course-overview)-[Getting Started](#getting-started)-[Installation](#installation)-[Usage](#usage)-[Folder Structure](#folder-structure)-[Code Examples](#code-examples)-[Contributing](#contributing)-[License](#license)-[Links and Resources](#links-and-resources)-[Contact](#contact)##Course OverviewFastAPI is a modern, fast (high-performance) web framework for building APIs with Python 3.6+. It is based on standard Python type hints. The course aims to teach you how to create APIs efficiently and effectively. By the end of this course, you'll have the knowledge to build and deploy your applications.###What You Will Learn- How to set up FastAPI and create your first API.- Work with path parameters and query parameters.- Understand request and response models using Pydantic.- Implement authentication and authorization.- Handle database operations with SQLAlchemy.- Create and manage Docker containers for your applications.##Getting StartedTo get started, clone this repository to your local machine:```bashgit clone https://github.com/ashok14k/FastAPI-The-Complete-Course-2025-Beginner-Advanced-Udemy.git
Navigate to the directory:
cd FastAPI-The-Complete-Course-2025-Beginner-Advanced-Udemy
Ensure you have Python 3.6+ installed. You can check your Python version with:
python --version
Next, install the required packages. It is best to use a virtual environment:
python -m venv venvsource venv/bin/activate# On Windows use `venv\Scripts\activate`pip install -r requirements.txt
Run the FastAPI application with the following command:
uvicorn main:app --reload
Visithttp://127.0.0.1:8000/docs
to explore the interactive API documentation generated by FastAPI.
The repository follows a structured approach to make navigation easier. Below is an overview of the main folders and files:
.├── app/│ ├── main.py│ ├── models/│ ├── routers/│ ├── schemas/│ └── utils/├── requirements.txt└── README.md
app/main.py
: The main application file where the FastAPI app instance is created.app/models/
: Contains database models.app/routers/
: Houses the API route definitions.app/schemas/
: Holds Pydantic models for request and response validation.app/utils/
: Any utility functions.
Here are some snippets to illustrate common tasks:
fromfastapiimportFastAPIapp=FastAPI()@app.get("/")defread_root():return {"Hello":"World"}
frompydanticimportBaseModelclassUser(BaseModel):id:intname:stremail:str
fromfastapi.securityimportOAuth2PasswordBearer,OAuth2PasswordRequestFormoauth2_scheme=OAuth2PasswordBearer(tokenUrl="token")@app.post("/token")asyncdeflogin(form:OAuth2PasswordRequestForm=Depends()):# Perform authenticationpass
We welcome contributions! To get started:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
Please ensure your code follows the existing style and includes tests.
This project is licensed under the MIT License. See theLICENSE file for details.
For more information, visit the following:
You can download the latest releases and updates from ourReleases page.
For questions or feedback, feel free to reach out through GitHub.
Happy coding! 💻
About
This repository is dedicated to storing the code developed during the "FastAPI - The Complete Course 2025 (Beginner + Advanced)" course on Udemy.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.