Backend for a Discord community website built as a backend-focused learning project using FastAPI and MongoDB Atlas.
The project includes authentication, JWT handling, protected admin routes, quote management, and crew member data handling.
- JWT Authentication
- Password Hashing
- Secure Cookie-Based Auth
- Session-Based Login Attempt Tracking
- Account Blocking After Multiple Failed Attempts
- Quote Posting & Deletion
- Crew/Admin Protected Routes
- MongoDB Atlas Integration
- Automatic JWT Validation
- Tamper & Expiry Detection
- FastAPI
- Pydantic
- MongoDB Atlas
- JWT Authentication
- Python Sessions
- Password Hashing
- Render Deployment
- User logs in through admin panel
- Password is verified using hashing
- JWT token is generated with 15-minute expiry
- Token is stored securely in cookies
auth_checkroute validates JWT automatically- Invalid or expired tokens result in automatic cookie deletion
- Sessions track failed login attempts
- Account gets temporarily blocked after 3 wrong attempts
- JWT expiry system
- HTTP cookie authentication
- SameSite=None cookie configuration for frontend-backend communication
- Password hashing
- Session-based brute-force protection
- Automatic invalid token cleanup
MongoDB Atlas is used for:
- Admin credentials
- Quotes storage
- Crew member data
- Login
- Logout
- JWT validation
- Session tracking
- Add quote
- Delete quote
- Fetch quotes
- Crew member data
- Instagram links
- Avatar storage
- Frontend deployed on Vercel
- Backend deployed on Render
Cross-origin authentication was handled using secure cookie configuration with SameSite=None.
This project was primarily created as a backend learning project focused on:
- authentication systems
- API security
- JWT handling
- cookie-based auth
- database integration
The frontend was intentionally kept simple and AI-assisted so development focus could remain on backend engineering and functionality.
Visit the live website here:
Frontend:
- HTML
- CSS
- JavaScript
- AI-assisted UI development
- Hosted on Vercel
Backend:
- FastAPI
- Pydantic
- MongoDB Atlas
- JWT Authentication
- Hosted on Render




