{"repo":"OwaisZakir/auth-system-boilerplate","free":true,"listed":false,"github":"https://github.com/OwaisZakir/auth-system-boilerplate","clone":"git clone https://github.com/OwaisZakir/auth-system-boilerplate.git","description":"Simple and secure JWT authentication API using Node.js, Express, MongoDB, and bcrypt. Includes registration, login, protected routes, and Postman testing. Built by Owais Zakir.","language":"JavaScript","stars":14,"topics":["authentication-system","backend-api","backend-api-boilerplate","bcrypt","expressjs","jwt-authentication","jwt-token","jwt-token-for-authentication","login-api","login-api-mern"],"license":null,"category":"auth-billing-email","readme_excerpt":"🔐 JWT Authentication API with Node.js, Express & MongoDB A production-ready boilerplate for building secure REST APIs using JWT authentication , bcrypt password hashing , and MongoDB with Mongoose . Built using Node.js and Express.js — ideal for login systems, user dashboards, and backend auth management. 💡 Built by Owais Zakir --- 📦 Features - ✅ Secure user registration & login - ✅ Password hashing with bcryptjs - ✅ JWT token-based authentication with expiry - ✅ Middleware-protected routes - ✅ Clean and modular folder structure - ✅ Ready to deploy, customize, and extend --- 🛠 Tech Stack - Node.js + Express.js - MongoDB + Mongoose - bcryptjs - jsonwebtoken - dotenv - Tested using Postman --- 🚀 Getting Started 📥 Clone the repository 📦 Install dependencies ⚙️ Setup environment variables Create a .env file in root: Or copy .env.example : ▶️ Start the development server The server will start at: http://localhost:5000 --- 📬 API Endpoints Method Endpoint Description ------ -------------------- ---------------------- POST /api/auth/register Register a new user POST /api/auth/login Login user + get token GET /api/dashboard Protected route 🛡 Auth Header for Protected Route: --- 🧪 Test with Postman Use the provided Postman collection to test endpoints. 📁 File: postman collection.json Steps: 1. Open Postman 2. Click Import Select postman collection.json 3. Register a new user 4. Login and copy the token 5. Add token in Authorization tab (Bearer) 6. Access /api/dashboard --- ���","default_branch":null,"files":null,"tree":[],"storefront":"/r/OwaisZakir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OwaisZakir/auth-system-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}