This project serves as the backend for the Authentication App, built using Node.js and Express. It provides REST APIs for authentication flows, including signup, login, email verification, and password reset, with secure JWT-based authentication.
git clone https://github.com/Zarfaa/authentication-backend.git
cd authentication-backendnpm installnpm run devThe app will be available at 👉 http://localhost:3000
- npm run dev → Start dev server with HMR
- npm run build → Build production bundle
Create a .env file in the root of your project and add:
- PORT=3000
- MONGO_URI=databse_url
- JWT_SECRET=your_jwt_secret
- EMAIL_FROM=verified_sendGrid_user
- CLIENT_URL=frontend_url
- SENDGRID_API_KEY=sendGrid_api_key
- Node.js + Express → Backend framework
- JWT → Authentication & authorization
- MongoDB → Database
- SendGrid → Email verification & password reset
- bcrypt.js → Password hashing