https://github.com/mallickboy/fastapi
Learning FastAPI in detail
https://github.com/mallickboy/fastapi
Last synced: 8 months ago
JSON representation
Learning FastAPI in detail
- Host: GitHub
- URL: https://github.com/mallickboy/fastapi
- Owner: mallickboy
- Created: 2025-02-01T17:43:25.000Z (8 months ago)
- Default Branch: fastapi
- Last Pushed: 2025-02-01T18:01:23.000Z (8 months ago)
- Last Synced: 2025-02-17T23:35:09.578Z (8 months ago)
- Language: Python
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🚀 Learning FastAPI
📖 Documenting my journey into FastAPI for better understanding and future reference---
## 📌 What I Have Learned
### ✅ Basic Backend Fundamentals
- Setting up a **FastAPI server** from scratch
- Understanding **GET requests** with **path parameters** & **query parameters**
- Using **async functions** and enforcing type hints (`int`, `str`, `bool`, `Optional[str]`, etc.)
- Handling **POST requests** with **Pydantic's BaseModel** for data validation---
🔹 **Why This Repository?**
This repository serves as my personal **FastAPI learning log**, helping me revisit concepts and share knowledge with others. Stay tuned for more updates! 🚀### **Key Improvements:**
✅ **Clear Sections** → Learning, Setup, Running, Stopping
✅ **Consistent Formatting** → Code blocks, comments, icons
✅ **Platform-Specific Commands** → Windows & Linux/Mac
✅ **Better Readability** → Emphasized key pointsWould you like me to add **Advanced Topics** like middleware, authentication, or database integration later? 🚀
## 🔥 Want to Try This Out?
### Pull the code
``` mkdir FastAPI ```
``` cd FastAPI ```
``` git init ```
``` git pull https://github.com/mallickboy/FastAPI.git ```
### 🐍 Create & Activate Python Virtual Environment
``` py -3.11 -m venv .venv ```
``` .venv\Scripts\activate ``` # Windows
``` source .venv/bin/activate ``` # Mac/Linux
### 🚀 Install Dependencies & Start the Server
``` pip install -r requirements.txt ```
``` uvicorn app.main:app --host "0.0.0.0" --port 8080 ```
### 🔄 Enable Auto-Reload for Development (Optional)
``` puvicorn app.main:app --host "0.0.0.0" --port 8080 --reload ``` ( Optional for auto relaod )
### 🛑 Stop Virtual Environment
``` deactivate ```
### ⚠️ Remove Python Virtual Environment (Use with Caution!)
``` Remove-Item -Recurse -Force .\venv ```