Skip to content

morel-source/PythonFastAPI-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Authentication Service

A personal backend project built with FastAPI to explore authentication, API design, and backend architecture in Python.

Features

  • User registration and login
  • JWT authentication
  • Protected endpoints using FastAPI dependencies
  • Todo CRUD operations
  • Request validation with Pydantic
  • SQLite persistence using SQLAlchemy ORM
  • Layered architecture (Controllers, Services, Models, Core)

Tech Stack

  • Python 3.10+
  • FastAPI
  • SQLAlchemy
  • SQLite
  • PyJWT
  • Passlib (bcrypt)
  • Uvicorn

Project Structure

app/
├── controllers/
├── services/
├── models/
├── core/
└── main.py

Running the Project

pip install -r requirements.txt
uvicorn main:app --reload

API Documentation:

Purpose

This project was created to learn and practice:

  • JWT-based authentication
  • Dependency injection
  • RESTful API development
  • SQLAlchemy ORM
  • Backend architecture patterns
  • Secure API design

About

Developed a FastAPI backend with JWT authentication, SQLAlchemy ORM, SQLite persistence, dependency injection, protected RESTful APIs, and user-owned Todo management using a layered architecture.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages