A modern authentication system built with React, FastAPI, and PostgreSQL featuring JWT Authentication, Password Hashing, Rate Limiting, and Production Deployment.
https://authentication-using-fast-api.vercel.app
Add screenshots here
| Login | Signup |
|---|---|
![]() |
![]() |
| Dashboard | Profile |
|---|---|
![]() |
![]() |
- JWT Authentication
- Secure Login & Signup
- Protected Routes
- Logout Functionality
- Argon2 Password Hashing
- Password Strength Validation
- Rate Limiting
- OAuth2 Bearer Authentication
- Environment Variables
- PostgreSQL
- SQLAlchemy ORM
- Alembic Migrations
- React 19
- React Router
- Axios Interceptors
- Toast Notifications
- Responsive Design
- Backend β Render
- Frontend β Vercel
- Production Ready
| Category | Technologies |
|---|---|
| π¨ Frontend | React 19, Vite, React Router, Axios, React Toastify |
| β‘ Backend | FastAPI, Pydantic, SQLAlchemy, Alembic |
| π Authentication | JWT, OAuth2, python-jose, pwdlib (Argon2) |
| π Database | PostgreSQL |
| π¦ Security | SlowAPI Rate Limiter |
| β Deployment | Render, Vercel |
| π§ Tools | Git, GitHub |
Authentication_using_FastAPI
β
βββ backend
β βββ auth
β βββ schemas
β βββ tokens
β βββ limiter
β βββ utils
β βββ alembic
β βββ database.py
β βββ model.py
β βββ main.py
β βββ requirements.txt
β
βββ frontend
β βββ src
β β βββ pages
β β βββ services
β β βββ App.jsx
β β βββ main.jsx
β βββ package.json
β
βββ README.md
React (Vite)
β
Axios API Calls
β
βΌ
FastAPI Backend
β
JWT Authentication Layer
β
SQLAlchemy + Alembic
β
βΌ
PostgreSQL Database
git clone https://github.com/durgaprasadcodes/Authentication_using_FastAPI.git
cd Authentication_using_FastAPIcd backend
python -m venv venv
source venv/bin/activate
# Windows
venv\Scripts\activate
pip install -r requirements.txtCreate .env
DATABASE_URL=
SECRET_KEY=
ALGORTHIM=HS256
EXPIRE_TIME=60Run Migrations
alembic upgrade headStart Server
uvicorn main:app --reloadcd frontend
npm installCreate
VITE_API_URL=http://127.0.0.1:8000Run
npm run dev| Method | Endpoint | Authentication |
|---|---|---|
| GET | / | β |
| POST | /auth/signup | β |
| POST | /auth/login | β |
| GET | /profile | β |
| POST | /changePassword | β |
{
"name":"John",
"email":"john@gmail.com",
"password":"Password@123"
}{
"email":"john@gmail.com",
"password":"Password@123"
}β Minimum 8 Characters
β One Uppercase Letter
β One Lowercase Letter
β One Number
β One Special Character
β Render
β Vercel
- Google OAuth Login
- Refresh Tokens
- Email Verification
- Forgot Password
- Docker Support
- CI/CD Pipeline
- User Roles
- Dark Mode
Durga Prasad Kota
πΌ LinkedIn
https://linkedin.com/in/durgaprasadkota
π§ Email



