An open API service indexing awesome lists of open source software.

https://github.com/akshay-2396/node-day-5

User Authentication and Authorization API
https://github.com/akshay-2396/node-day-5

bcrypt expressjs jwt-authentication mongodb nodejs postman

Last synced: 2 months ago
JSON representation

User Authentication and Authorization API

Awesome Lists containing this project

README

          

# ✔ User Authentication and Authorization API
A RESTful API for user registration, login, and authentication using Bearer tokens. Built with Node.js, Express.js, MongoDB (Mongoose), and JWT. The application follows the MVC architecture and includes API documentation using Postman.

# 🌐 API Endpoints
* Register a user – POST /api/auth/register

* Login a user – POST /api/auth/login

* Get user info – GET /api/auth/getuser

# 🛠 Tech Stack
* Node.js

* Express.js

* MongoDB + Mongoose

* JWT for authentication

* Postman for API testing and documentation

# ✅ Features
- User registration and login

- Password hashing with bcrypt

- JWT generation and verification

- Protected routes using middleware

- MVC architecture

- Error handling and validation

- Postman collection with API documentation

# 📕 API Documentation
All endpoints are documented and tested using Postman.

https://documenter.getpostman.com/view/44994885/2sB2qaj2Yi

# 🚀 Deployment
Deployed the API using:

**Render** :
https://node-day-5-yivk.onrender.com/

# ✍ Author

* *Akshay*