Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AbhayPratap05/bat-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦇 Batman Authentication System

A Batman themed full-stack authentication system built with React, Node.js, Express, and MongoDB, featuring:

  • Secure login & registration
  • Email verification
  • Password reset
  • Persistent authentication

🌐 Live at: https://batauthsys.netlify.app


🚀 Features

  • 🔑 User Authentication: Register & Login with JWT-based sessions
  • ✉️ Email Verification: Verify account using OTP sent via email
  • 🔒 Password Reset: Secure OTP-based password reset flow
  • 🍪 HTTP-only Cookies: Secure session management with SameSite=None & Secure flags in production
  • 📬 SMTP Integration: Emails for welcome, OTP verification, and password reset
  • 🖤 Batman-Themed UI: Dark, immersive design with a bottom dock
  • 🖥️ Persistent Login: User stays logged in even after refresh

🛠️ Tech Stack

Frontend

  • React + Vite
  • TailwindCSS
  • React Toastify

Backend

  • Node.js + Express
  • MongoDB + Mongoose
  • JWT for authentication
  • Nodemailer (SMTP) for emails

Deployment

  • Netlify (Frontend)
  • Render (Backend)

⚡ Installation & Setup

1️⃣ Clone the repo

git clone https://github.com/AbhayPratap05/bat-auth.git
cd bat-auth

2️⃣ Setup Backend

cd server
npm install

Create a .env file inside server/ with:

PORT=4000
MONGODB_URL=your-mongodb-uri
JWT_SECRET=your-secret-key
SMTP_USER=your-smtp-user
SMTP_PASS=your-smtp-pass
SENDER_EMAIL=your-sender-email
NODE_ENV=development

Run the backend:

npm start

3️⃣ Setup Frontend

cd client
npm install

Create a .env file inside client/ with:

VITE_BACKEND_URL=http://localhost:4000

Run the frontend:

npm run dev

📸 SCREENSHOTS:

Screenshot 2025-08-28 at 04 23 21 Screenshot 2025-08-28 at 04 25 33 Screenshot 2025-08-28 at 04 28 47 Screenshot 2025-08-28 at 04 25 09

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages