Skip to content

Senado-09/fastapi-auth-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” FastAPI Auth Starter (JWT + Profile)

A clean and modern FastAPI starter template that includes JWT authentication, user profile management, and modular architecture.

This project is perfect for anyone building a backend for:

  • βœ… MVPs or SaaS platforms
  • βœ… Mobile app APIs
  • βœ… Secure admin dashboards
  • βœ… Learning how to structure FastAPI applications

✨ Key Features

  • πŸ” User signup & login (/auth/signup, /auth/login)
  • πŸ›‘οΈ JWT authentication with token-based protection
  • πŸ‘€ User profile support (/profile/me)
  • 🧱 SQLite database (easily swappable with PostgreSQL)
  • πŸ”’ Password hashing (bcrypt)
  • πŸ“‚ Modular file structure for scalability
  • 🌍 Fully commented in English & French

🧩 Project Structure

fastapi-auth-snippet/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ core/          # Config & security
β”‚   β”œβ”€β”€ crud/          # DB access logic
β”‚   β”œβ”€β”€ models/        # SQLAlchemy models
β”‚   β”œβ”€β”€ routes/        # API routes
β”‚   β”œβ”€β”€ schemas/       # Pydantic schemas
β”‚   β”œβ”€β”€ main.py        # API entry point
β”‚   └── database.py    # DB connection
β”œβ”€β”€ README.md

πŸ“Έ Screenshots

Example response from /auth/login

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR...",
  "token_type": "bearer"
}

Example request to /profile/me

{
  "bio": "FastAPI lover",
  "image": "https://example.com/photo.jpg"
}

πŸ›οΈ Get the full version

This is just a preview!

πŸ‘‰ Get the complete source code + documentation + real usage demo here:
πŸ“¦ Buy on Selar

Includes:

  • Full commented code
  • SQLite setup
  • Auth routes, profile routes
  • Bilingual documentation (FR/EN)
  • Ready to deploy or extend

πŸ§‘β€πŸ’» Author

Developed with ❀️ by SENA DOMONHEDO
πŸ“§ Email: [email protected]


⭐ If you find this useful, give it a star and share it with others!

About

A simple and secure FastAPI starter with JWT authentication and profile management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published