A repository dedicated for learning FastAPI.
-
Setup Python Virtual Environment
python -m venv fastapienv
-
Activate the Virtual Environment
fastapienv\Scripts\activate.bat
-
Install fastapi
pip install fastapi
-
Install uvicorn
pip install "uvicorn[standard]"
-
To run the server, navigate to project directory and use the command:
uvicorn [filename]:[variable name used to initialize FastAPI] --reload
Example:
uvicorn books:app --reload
- Project 1 - FastAPI Request Method Logic
- Request and Response
- CRUD Operations
- HTTP Request Methods
- Project 2 - Move Fast with FastAPI
- Data Validation (using Pydantic V2)
- Exception Handling
- Status Codes
- Swagger Configuration
- Request Objects
- Project 3 - Complete RESTful APIs
- Full SQL Database
- Authentication
- Authorization
- Hashing Passwords
- Project 3.5 - Alembic Data Migration
- Database Revisions
- Data Migration
- Project 4 - MongoDB
- NoSQL Database