Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 FastAPI Learning

A personal repository for learning and practicing FastAPI, a modern, high-performance Python web framework for building APIs.


📌 About

This repository contains my FastAPI learning journey, including:

  • FastAPI basics
  • Routing and path parameters
  • Query parameters
  • Request and response models
  • Pydantic validation
  • CRUD APIs
  • Dependency Injection
  • Database integration
  • Authentication & Authorization
  • File uploads
  • Middleware
  • Background tasks
  • Deployment

🛠️ Tech Stack

  • Python 3.13
  • FastAPI
  • Uvicorn
  • Pydantic
  • SQLAlchemy
  • python-dotenv

📁 Project Structure

FastApi Learning/
│── .env
│── .gitignore
│── async.py
│── config.py
│── cors.py
│── CREATE.py
│── crud.py
│── data.db
│── delete.py
│── dependencyinjection.py
│── env_cors.py
│── first.py
│── fileupload.py
│── jwt.md
│── jwtauth.py
│── middleware/
│── multiple_routes.py
│── nested_model.py
│── oauth2.py
│── oauth2.md
│── path_parameters.py
│── path_query_body_combo.py
│── query_parameters.py
│── read.py
│── README.md
│── request_body.py
│── Responsemodel.py
│── sql_alchemy.py
│── sqllite.py
│── status_code.py
│── syncasync.py
│── test.db
│── update.py
│── uploads/
│── venv/

⚙️ Installation

1. Clone the repository

git clone <repository-url>
cd "FastApi Learning"

2. Create a virtual environment

python -m venv venv

3. Activate the virtual environment

Windows (PowerShell)

.\venv\Scripts\Activate.ps1

Windows (Command Prompt)

venv\Scripts\activate

macOS/Linux

source venv/bin/activate

4. Install dependencies

pip install fastapi uvicorn pydantic sqlalchemy python-dotenv

▶️ Run the Application

uvicorn main:app --reload

Server will start at:

http://127.0.0.1:8000

📚 API Documentation

FastAPI automatically generates interactive API documentation.


📝 Sample Code

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def home():
    return {"message": "Hello World"}

🎯 Learning Goals

  • Learn FastAPI fundamentals
  • Build REST APIs
  • Perform CRUD operations
  • Use Pydantic models
  • Connect to a database
  • Implement JWT Authentication
  • Handle file uploads
  • Write unit tests
  • Deploy FastAPI applications

📖 Resources


📄 License

This project is created for educational purposes and personal learning.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages