Skip to content

vinay-dev95/user_signup_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ User Signup & JWT Auth API (FastAPI)

This is a simple and secure backend API built using FastAPI for handling user registration, login, password hashing, and JWT-based authentication.


πŸš€ Features

  • βœ… User Signup with Email Validation
  • πŸ” Password Hashing using passlib
  • πŸ”“ JWT Token Generation on Login
  • πŸ“§ Email format validation (EmailStr)
  • πŸ”’ Protected endpoints using OAuth2 Bearer Token
  • πŸ—ƒοΈ SQLite Database (with SQLAlchemy ORM)
  • πŸ“‚ Environment-based configuration (.env support)

πŸ“ Project Structure

  • user_signup_project/
  • main.py # FastAPI app entry point
  • models.py # Pydantic models & DB models
  • database.py # Database setup (SQLAlchemy + SQLite)
  • utils.py # Utility functions (hashing, JWT)
  • auth.py # JWT creation & token handling
  • .env # Environment variables

πŸ§ͺ Installation & Running

1️⃣ Clone the repo

git clone https://github.com/vinay-dev95/user_signup_project.git
cd user_signup_project

 uvicorn main:app --host 0.0.0.0 --port 8000 --reload

 Dependencies
fastapi

uvicorn

python-dotenv

passlib[bcrypt]

sqlalchemy

pydantic

python-jose (for JWT)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages