Skip to content

NafsanDev/python_fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Secure FastAPI Project - Python

A secure, production-ready FastAPI backend built with:

  • FastAPI – high-performance Python web framework
  • OAuth2 + JWT – authentication and authorization
  • Passlib – password hashing
  • SQLAlchemy – ORM for database interactions
  • Pydantic – request/response validation

This project is designed as a starting point for building APIs with secure user authentication, database models, and role-based access.


To run the project:

  1. Create a virtual environment
    python -m venv venv
    source venv/bin/activate # Linux / macOS
    venv\Scripts\activate # Windows

  2. Install dependencies
    pip install -r requirements.txt

  3. Run the app
    uvicorn myapi:app --reload # Secure version
    or
    uvicorn sqlapi:app --reload # SQL version
    or
    uvicorn hardcodedapi:app --reload # Hardcoded JSON version

  4. API TEST
    Goto http://127.0.0.1:8000/docs

About

API created with Python FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages