<h1 align="center">Advanced Auth Tutorial 🔒 </h1>

![Demo App](/frontend/public/screenshot-for-readme.png)

[Video Tutorial on Youtube](https://youtu.be/pmvEgZC55Cg)

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
-   🚀 Super Detailed Deployment
-   ✅ This is a lot of work. Support my work by subscribing to the [Channel](https://www.youtube.com/@asaprogrammer_)

### Setup .env file

```bash
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

```shell
npm run build
```

### Start the app

```shell
npm run start
```

### I'll see you in the next one! 🚀