/Mern-advance-authorization

Full Authorization setup developed using MERN stack with JWT webtoken autherization , and using the Mailtrap for E-mail sending to the user.

Primary LanguageJavaScript

MERN Advanced Authorisation 🔒

Demo App

About This Course:

  • 🔧 Backend Setup
  • 🗄️ Database Setup
  • 🔐 Signup Endpoint
  • 📧 Sending Verify Account Email
  • 🔍 Verify Email Endpoint
  • 📄 Building a Welcome Email Template
  • 🚪 Logout Endpoint
  • 🔑 Login Endpoint
  • 🔄 Forgot Password Endpoint
  • 🔁 Reset Password Endpoint
  • ✔️ Check Auth Endpoint
  • 🌐 Frontend Setup
  • 📋 Signup Page UI
  • 🔓 Login Page UI
  • ✅ Email Verification Page UI
  • 📤 Implementing Signup
  • 📧 Implementing Email Verification
  • 🔒 Protecting Our Routes
  • 🔑 Implementing Login
  • 🏠 Dashboard Page
  • 🔄 Implementing Forgot Password

Setup .env file

MONGO_URI=your_mongo_uri
PORT=5000
JWT_SECRET=your_secret_key
NODE_ENV=development

MAILTRAP_TOKEN=your_mailtrap_token
MAILTRAP_ENDPOINT=https://send.api.mailtrap.io/

CLIENT_URL= http://localhost:5173

Run this app locally

npm run build

Start the app

npm run start